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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
        This call is to remove stored app identifier state that is no longer needed.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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​(org.moe.natj.objc.SEL action,
                                                  java.lang.Object sender)
      • canResignFirstResponder

        public boolean canResignFirstResponder()
        default is YES
      • inputAccessoryView

        public UIView inputAccessoryView()
      • inputAssistantItem

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

        public UIView inputView()
        Called and presented when object becomes first responder. Goes up the responder chain.
      • inputViewController

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

        public boolean isFirstResponder()
      • keyCommands

        public NSArray<? extends UIKeyCommand> keyCommands()
        returns an array of UIKeyCommand objects<
      • motionBeganWithEvent

        public void motionBeganWithEvent​(long motion,
                                         UIEvent event)
      • motionCancelledWithEvent

        public void motionCancelledWithEvent​(long motion,
                                             UIEvent event)
      • motionEndedWithEvent

        public void motionEndedWithEvent​(long motion,
                                         UIEvent event)
      • pressesBeganWithEvent

        public void pressesBeganWithEvent​(NSSet<? extends UIPress> presses,
                                          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.
      • reloadInputViews

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

        public void remoteControlReceivedWithEvent​(UIEvent event)
      • resignFirstResponder

        public boolean resignFirstResponder()
      • setUserActivity

        public void setUserActivity​(NSUserActivity value)
      • targetForActionWithSender

        public java.lang.Object targetForActionWithSender​(org.moe.natj.objc.SEL action,
                                                          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.
      • textInputContextIdentifier

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

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

        public void touchesBeganWithEvent​(NSSet<? extends UITouch> touches,
                                          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​(NSSet<? extends UITouch> touches,
                                              UIEvent event)
      • touchesEndedWithEvent

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

        public void touchesEstimatedPropertiesUpdated​(NSSet<? extends UITouch> touches)
      • touchesMovedWithEvent

        public void touchesMovedWithEvent​(NSSet<? extends UITouch> touches,
                                          UIEvent event)
      • updateUserActivityState

        public void updateUserActivityState​(NSUserActivity activity)
      • buildMenuWithBuilder

        public void buildMenuWithBuilder​(UIMenuBuilder builder)
        Overrides for menu building and validation
      • editingInteractionConfiguration

        public long editingInteractionConfiguration()
        Productivity editing interaction support for undo/redo/cut/copy/paste gestures
      • validateCommand

        public void validateCommand​(UICommand command)