Interface NSTextContentManagerDelegate

    • 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.