Package apple.uikit

Class UIResponder

    • Constructor Detail

      • UIResponder

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIResponder allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
        This call is to remove stored app identifier state that is no longer needed. API-Since: 7.0
      • debugDescription_static

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

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

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • 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)
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • becomeFirstResponder

        public boolean becomeFirstResponder()
      • canBecomeFirstResponder

        public boolean canBecomeFirstResponder()
        default is NO
      • canPerformActionWithSender

        public boolean canPerformActionWithSender​(@NotNull
                                                  @NotNull org.moe.natj.objc.SEL action,
                                                  @Nullable
                                                  @Nullable java.lang.Object sender)
        API-Since: 3.0
      • canResignFirstResponder

        public boolean canResignFirstResponder()
        default is YES
      • inputAccessoryView

        @Nullable
        public @Nullable UIView inputAccessoryView()
        API-Since: 3.2
      • inputAccessoryViewController

        @Nullable
        public @Nullable UIInputViewController inputAccessoryViewController()
        API-Since: 8.0
      • inputAssistantItem

        @NotNull
        public @NotNull UITextInputAssistantItem inputAssistantItem()
        This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain. API-Since: 9.0
      • inputView

        @Nullable
        public @Nullable UIView inputView()
        Called and presented when object becomes first responder. Goes up the responder chain. API-Since: 3.2
      • inputViewController

        @Nullable
        public @Nullable UIInputViewController inputViewController()
        For viewController equivalents of -inputView and -inputAccessoryView Called and presented when object becomes first responder. Goes up the responder chain. API-Since: 8.0
      • isFirstResponder

        public boolean isFirstResponder()
      • keyCommands

        @Nullable
        public @Nullable NSArray<? extends UIKeyCommand> keyCommands()
        returns an array of UIKeyCommand objects< API-Since: 7.0
      • motionBeganWithEvent

        public void motionBeganWithEvent​(long motion,
                                         @Nullable
                                         @Nullable UIEvent event)
        API-Since: 3.0
      • motionCancelledWithEvent

        public void motionCancelledWithEvent​(long motion,
                                             @Nullable
                                             @Nullable UIEvent event)
        API-Since: 3.0
      • motionEndedWithEvent

        public void motionEndedWithEvent​(long motion,
                                         @Nullable
                                         @Nullable UIEvent event)
        API-Since: 3.0
      • nextResponder

        @Nullable
        public @Nullable UIResponder nextResponder()
      • pressesBeganWithEvent

        public void pressesBeganWithEvent​(@NotNull
                                          @NotNull NSSet<? extends UIPress> presses,
                                          @Nullable
                                          @Nullable UIPressesEvent event)
        Generally, all responders which do custom press handling should override all four of these methods. Your responder will receive either pressesEnded:withEvent or pressesCancelled:withEvent: for each press it is handling (those presses it received in pressesBegan:withEvent:). pressesChanged:withEvent: will be invoked for presses that provide an analog value (like thumbsticks or analog push buttons) *** You must handle cancelled presses to ensure correct behavior in your application. Failure to do so is very likely to lead to incorrect behavior or crashes. API-Since: 9.0
      • pressesCancelledWithEvent

        public void pressesCancelledWithEvent​(@NotNull
                                              @NotNull NSSet<? extends UIPress> presses,
                                              @Nullable
                                              @Nullable UIPressesEvent event)
        API-Since: 9.0
      • pressesChangedWithEvent

        public void pressesChangedWithEvent​(@NotNull
                                            @NotNull NSSet<? extends UIPress> presses,
                                            @Nullable
                                            @Nullable UIPressesEvent event)
        API-Since: 9.0
      • pressesEndedWithEvent

        public void pressesEndedWithEvent​(@NotNull
                                          @NotNull NSSet<? extends UIPress> presses,
                                          @Nullable
                                          @Nullable UIPressesEvent event)
        API-Since: 9.0
      • reloadInputViews

        public void reloadInputViews()
        If called while object is first responder, reloads inputView, inputAccessoryView, and textInputMode. Otherwise ignored. API-Since: 3.2
      • remoteControlReceivedWithEvent

        public void remoteControlReceivedWithEvent​(@Nullable
                                                   @Nullable UIEvent event)
        API-Since: 4.0
      • resignFirstResponder

        public boolean resignFirstResponder()
      • setUserActivity

        public void setUserActivity​(@Nullable
                                    @Nullable NSUserActivity value)
        API-Since: 8.0
      • targetForActionWithSender

        @Nullable
        public @Nullable java.lang.Object targetForActionWithSender​(@NotNull
                                                                    @NotNull org.moe.natj.objc.SEL action,
                                                                    @Nullable
                                                                    @Nullable java.lang.Object sender)
        Allows an action to be forwarded to another target. By default checks -canPerformAction:withSender: to either return self, or go up the responder chain. API-Since: 7.0
      • textInputContextIdentifier

        @Nullable
        public @Nullable java.lang.String textInputContextIdentifier()
        When the first responder changes and an identifier is queried, the system will establish a context to track the textInputMode automatically. The system will save and restore the state of that context to the user defaults via the app identifier. Use of -textInputMode above will supersede use of -textInputContextIdentifier. API-Since: 7.0
      • textInputMode

        @Nullable
        public @Nullable UITextInputMode textInputMode()
        When queried, returns the current UITextInputMode, from which the keyboard language can be determined. When overridden it should return a previously-queried UITextInputMode object, which will attempt to be set inside that app, but not persistently affect the user's system-wide keyboard settings. API-Since: 7.0
      • touchesBeganWithEvent

        public void touchesBeganWithEvent​(@NotNull
                                          @NotNull NSSet<? extends UITouch> touches,
                                          @Nullable
                                          @Nullable UIEvent event)
        Generally, all responders which do custom touch handling should override all four of these methods. Your responder will receive either touchesEnded:withEvent: or touchesCancelled:withEvent: for each touch it is handling (those touches it received in touchesBegan:withEvent:). *** You must handle cancelled touches to ensure correct behavior in your application. Failure to do so is very likely to lead to incorrect behavior or crashes.
      • touchesCancelledWithEvent

        public void touchesCancelledWithEvent​(@NotNull
                                              @NotNull NSSet<? extends UITouch> touches,
                                              @Nullable
                                              @Nullable UIEvent event)
      • touchesEndedWithEvent

        public void touchesEndedWithEvent​(@NotNull
                                          @NotNull NSSet<? extends UITouch> touches,
                                          @Nullable
                                          @Nullable UIEvent event)
      • touchesEstimatedPropertiesUpdated

        public void touchesEstimatedPropertiesUpdated​(@NotNull
                                                      @NotNull NSSet<? extends UITouch> touches)
        API-Since: 9.1
      • touchesMovedWithEvent

        public void touchesMovedWithEvent​(@NotNull
                                          @NotNull NSSet<? extends UITouch> touches,
                                          @Nullable
                                          @Nullable UIEvent event)
      • undoManager

        @Nullable
        public @Nullable NSUndoManager undoManager()
        API-Since: 3.0
      • updateUserActivityState

        public void updateUserActivityState​(@NotNull
                                            @NotNull NSUserActivity activity)
        API-Since: 8.0
      • userActivity

        @Nullable
        public @Nullable NSUserActivity userActivity()
        API-Since: 8.0
      • buildMenuWithBuilder

        public void buildMenuWithBuilder​(@NotNull
                                         @NotNull UIMenuBuilder builder)
        Overrides for menu building and validation API-Since: 13.0
      • editingInteractionConfiguration

        public long editingInteractionConfiguration()
        Productivity editing interaction support for undo/redo/cut/copy/paste gestures API-Since: 13.0
      • validateCommand

        public void validateCommand​(@NotNull
                                    @NotNull UICommand command)
        API-Since: 13.0
      • captureTextFromCamera

        public void captureTextFromCamera​(@Nullable
                                          @Nullable java.lang.Object sender)
        API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.