Package apple.uikit.protocol
Interface NSTextContentManagerDelegate
-
- All Known Subinterfaces:
NSTextContentStorageDelegate
public interface NSTextContentManagerDelegateAPI-Since: 15.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleantextContentManagerShouldEnumerateTextElementOptions(@NotNull NSTextContentManager textContentManager, @NotNull NSTextElement textElement, long options)Gives delegate a chance to validate textElement right before block() invocation with -enumerateTextElementsFromLocation:options:usingBlock:.default @Nullable NSTextElementtextContentManagerTextElementAtLocation(@NotNull NSTextContentManager textContentManager, @NotNull NSTextLocation location)Returns a custom element for location.
-
-
-
Method Detail
-
textContentManagerShouldEnumerateTextElementOptions
default boolean textContentManagerShouldEnumerateTextElementOptions(@NotNull @NotNull NSTextContentManager textContentManager, @NotNull @NotNull NSTextElement textElement, long options)Gives delegate a chance to validate textElement right before block() invocation with -enumerateTextElementsFromLocation:options:usingBlock:. Returning NO indicates textElement to be skipped from the enumeration.
-
textContentManagerTextElementAtLocation
@Nullable default @Nullable NSTextElement textContentManagerTextElementAtLocation(@NotNull @NotNull NSTextContentManager textContentManager, @NotNull @NotNull NSTextLocation location)
Returns a custom element for location. When non-nil, textContentManager uses the element instead of creating based on its standard mapping logic.
-
-