Package apple.uikit
Class UIResponder
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- All Implemented Interfaces:
NSObject,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring
- Direct Known Subclasses:
SKNode,UIAccessibilityElement,UIApplication,UIScene,UIView,UIViewController
public class UIResponder extends NSObject implements UIResponderStandardEditActions, UIUserActivityRestoring, UIPasteConfigurationSupporting
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIResponder(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()UIActivityItemsConfigurationReadingactivityItemsConfiguration()static UIResponderalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanbecomeFirstResponder()voidbuildMenuWithBuilder(UIMenuBuilder builder)Overrides for menu building and validationbooleancanBecomeFirstResponder()default is NOstatic voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanPasteItemProviders(NSArray<? extends NSItemProvider> itemProviders)booleancanPerformActionWithSender(org.moe.natj.objc.SEL action, java.lang.Object sender)booleancanResignFirstResponder()default is YESstatic NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)This call is to remove stored app identifier state that is no longer needed.voidcopy(java.lang.Object sender)voidcut(java.lang.Object sender)static java.lang.StringdebugDescription_static()voiddecreaseSize(java.lang.Object sender)voiddelete(java.lang.Object sender)static java.lang.Stringdescription_static()longeditingInteractionConfiguration()Productivity editing interaction support for undo/redo/cut/copy/paste gesturesstatic longhash_static()voidincreaseSize(java.lang.Object sender)UIResponderinit()UIViewinputAccessoryView()UIInputViewControllerinputAccessoryViewController()UITextInputAssistantIteminputAssistantItem()This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard.UIViewinputView()Called and presented when object becomes first responder.UIInputViewControllerinputViewController()For viewController equivalents of -inputView and -inputAccessoryView Called and presented when object becomes first responder.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisFirstResponder()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)NSArray<? extends UIKeyCommand>keyCommands()returns an array of UIKeyCommand objects<static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)voidmakeTextWritingDirectionLeftToRight(java.lang.Object sender)voidmakeTextWritingDirectionRightToLeft(java.lang.Object sender)voidmotionBeganWithEvent(long motion, UIEvent event)voidmotionCancelledWithEvent(long motion, UIEvent event)voidmotionEndedWithEvent(long motion, UIEvent event)static java.lang.Objectnew_objc()UIRespondernextResponder()voidpaste(java.lang.Object sender)UIPasteConfigurationpasteConfiguration()voidpasteItemProviders(NSArray<? extends NSItemProvider> itemProviders)voidpressesBeganWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)Generally, all responders which do custom press handling should override all four of these methods.voidpressesCancelledWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)voidpressesChangedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)voidpressesEndedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)voidreloadInputViews()If called while object is first responder, reloads inputView, inputAccessoryView, and textInputMode.voidremoteControlReceivedWithEvent(UIEvent event)booleanresignFirstResponder()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidrestoreUserActivityState(NSUserActivity activity)voidselect(java.lang.Object sender)voidselectAll(java.lang.Object sender)voidsetActivityItemsConfiguration(UIActivityItemsConfigurationReading value)voidsetPasteConfiguration(UIPasteConfiguration value)voidsetUserActivity(NSUserActivity value)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()java.lang.ObjecttargetForActionWithSender(org.moe.natj.objc.SEL action, java.lang.Object sender)Allows an action to be forwarded to another target.java.lang.StringtextInputContextIdentifier()When the first responder changes and an identifier is queried, the system will establish a context to track the textInputMode automatically.UITextInputModetextInputMode()When queried, returns the current UITextInputMode, from which the keyboard language can be determined.voidtoggleBoldface(java.lang.Object sender)voidtoggleItalics(java.lang.Object sender)voidtoggleUnderline(java.lang.Object sender)voidtouchesBeganWithEvent(NSSet<? extends UITouch> touches, UIEvent event)Generally, all responders which do custom touch handling should override all four of these methods.voidtouchesCancelledWithEvent(NSSet<? extends UITouch> touches, UIEvent event)voidtouchesEndedWithEvent(NSSet<? extends UITouch> touches, UIEvent event)voidtouchesEstimatedPropertiesUpdated(NSSet<? extends UITouch> touches)voidtouchesMovedWithEvent(NSSet<? extends UITouch> touches, UIEvent event)NSUndoManagerundoManager()voidupdateTextAttributesWithConversionHandler(UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler conversionHandler)voidupdateUserActivityState(NSUserActivity activity)NSUserActivityuserActivity()voidvalidateCommand(UICommand command)static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIResponder alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
-
copy
public void copy(java.lang.Object sender)
- Specified by:
copyin interfaceUIResponderStandardEditActions
-
cut
public void cut(java.lang.Object sender)
- Specified by:
cutin interfaceUIResponderStandardEditActions
-
decreaseSize
public void decreaseSize(java.lang.Object sender)
- Specified by:
decreaseSizein interfaceUIResponderStandardEditActions
-
delete
public void delete(java.lang.Object sender)
- Specified by:
deletein interfaceUIResponderStandardEditActions
-
increaseSize
public void increaseSize(java.lang.Object sender)
- Specified by:
increaseSizein interfaceUIResponderStandardEditActions
-
init
public UIResponder init()
-
inputAccessoryView
public UIView inputAccessoryView()
-
inputAccessoryViewController
public UIInputViewController inputAccessoryViewController()
-
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<
-
makeTextWritingDirectionLeftToRight
public void makeTextWritingDirectionLeftToRight(java.lang.Object sender)
- Specified by:
makeTextWritingDirectionLeftToRightin interfaceUIResponderStandardEditActions
-
makeTextWritingDirectionRightToLeft
public void makeTextWritingDirectionRightToLeft(java.lang.Object sender)
- Specified by:
makeTextWritingDirectionRightToLeftin interfaceUIResponderStandardEditActions
-
motionBeganWithEvent
public void motionBeganWithEvent(long motion, UIEvent event)
-
motionCancelledWithEvent
public void motionCancelledWithEvent(long motion, UIEvent event)
-
motionEndedWithEvent
public void motionEndedWithEvent(long motion, UIEvent event)
-
nextResponder
public UIResponder nextResponder()
-
paste
public void paste(java.lang.Object sender)
- Specified by:
pastein interfaceUIResponderStandardEditActions
-
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.
-
pressesCancelledWithEvent
public void pressesCancelledWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
-
pressesChangedWithEvent
public void pressesChangedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
-
pressesEndedWithEvent
public void pressesEndedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
-
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()
-
restoreUserActivityState
public void restoreUserActivityState(NSUserActivity activity)
- Specified by:
restoreUserActivityStatein interfaceUIUserActivityRestoring
-
select
public void select(java.lang.Object sender)
- Specified by:
selectin interfaceUIResponderStandardEditActions
-
selectAll
public void selectAll(java.lang.Object sender)
- Specified by:
selectAllin interfaceUIResponderStandardEditActions
-
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.
-
toggleBoldface
public void toggleBoldface(java.lang.Object sender)
- Specified by:
toggleBoldfacein interfaceUIResponderStandardEditActions
-
toggleItalics
public void toggleItalics(java.lang.Object sender)
- Specified by:
toggleItalicsin interfaceUIResponderStandardEditActions
-
toggleUnderline
public void toggleUnderline(java.lang.Object sender)
- Specified by:
toggleUnderlinein interfaceUIResponderStandardEditActions
-
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)
-
undoManager
public NSUndoManager undoManager()
-
updateUserActivityState
public void updateUserActivityState(NSUserActivity activity)
-
userActivity
public NSUserActivity userActivity()
-
canPasteItemProviders
public boolean canPasteItemProviders(NSArray<? extends NSItemProvider> itemProviders)
- Specified by:
canPasteItemProvidersin interfaceUIPasteConfigurationSupporting
-
pasteConfiguration
public UIPasteConfiguration pasteConfiguration()
- Specified by:
pasteConfigurationin interfaceUIPasteConfigurationSupporting
-
pasteItemProviders
public void pasteItemProviders(NSArray<? extends NSItemProvider> itemProviders)
- Specified by:
pasteItemProvidersin interfaceUIPasteConfigurationSupporting
-
setPasteConfiguration
public void setPasteConfiguration(UIPasteConfiguration value)
- Specified by:
setPasteConfigurationin interfaceUIPasteConfigurationSupporting
-
activityItemsConfiguration
public UIActivityItemsConfigurationReading activityItemsConfiguration()
-
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
-
setActivityItemsConfiguration
public void setActivityItemsConfiguration(UIActivityItemsConfigurationReading value)
-
updateTextAttributesWithConversionHandler
public void updateTextAttributesWithConversionHandler(UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler conversionHandler)
- Specified by:
updateTextAttributesWithConversionHandlerin interfaceUIResponderStandardEditActions
-
validateCommand
public void validateCommand(UICommand command)
-
-