Package apple.uikit

Class UITextSelectionDisplayInteraction

  • All Implemented Interfaces:
    NSObject, UIInteraction

    public class UITextSelectionDisplayInteraction
    extends NSObject
    implements UIInteraction
    [@c] UITextSelectionDisplayInteraction Manages a collection of selection views (cursor, highlight, range adjustment) for a particular UITextInput object. This is the component that @c UITextInteraction generally talks to in order to accomplish all selection display using a collection of "managed subviews", i.e., selection view components that actually manage the display of the selection and the various affordances for changing the selection. API-Since: 17.0
    • Constructor Detail

      • UITextSelectionDisplayInteraction

        protected UITextSelectionDisplayInteraction​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • cursorView

        @NotNull
        public @NotNull UIView cursorView()
        The cursor view (also known as "caret" view). Shown when the selection is not ranged.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • handleViews

        @NotNull
        public @NotNull NSArray<? extends UIView> handleViews()
        The selection handles, shown adjacent to the highlight view's @c selectionRects when the selection is ranged. If you are replacing these system-provided handle views with your own, you must provide exactly two handle views, one to be used as the leading handle, and another to be used as the trailing handle.
      • hash_static

        public static long hash_static()
      • highlightView

        @NotNull
        public @NotNull UIView highlightView()
        The highlight view. This is the blue/tinted highlight drawn behind the rendered text.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isActivated

        public boolean isActivated()
        Controls both the hidden sate of contained selection views as well as interactions that follow.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layoutManagedSubviews

        public void layoutManagedSubviews()
        Loads the selection from `-[UITextInput selectedTextRange]` and applies the selection to all managed subviews.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setActivated

        public void setActivated​(boolean value)
        Controls both the hidden sate of contained selection views as well as interactions that follow.
      • setCursorView

        public void setCursorView​(@NotNull
                                  @NotNull UIView value)
        The cursor view (also known as "caret" view). Shown when the selection is not ranged.
      • setHandleViews

        public void setHandleViews​(@NotNull
                                   @NotNull NSArray<? extends UIView> value)
        The selection handles, shown adjacent to the highlight view's @c selectionRects when the selection is ranged. If you are replacing these system-provided handle views with your own, you must provide exactly two handle views, one to be used as the leading handle, and another to be used as the trailing handle.
      • setHighlightView

        public void setHighlightView​(@NotNull
                                     @NotNull UIView value)
        The highlight view. This is the blue/tinted highlight drawn behind the rendered text.
      • setNeedsSelectionUpdate

        public void setNeedsSelectionUpdate()
        Call this whenever the selection changes, or needs to be re-laid out.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • textInput

        @Nullable
        public @Nullable UITextInput textInput()
        The object the selection is being managed for.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()