Package apple.uikit
Class UIAccessibilityElement
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIAccessibilityElement
-
- All Implemented Interfaces:
NSObject,UIAccessibilityIdentification,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring
public class UIAccessibilityElement extends UIResponder implements UIAccessibilityIdentification
UIAccessibilityElement Instances of this class can be used as "fake" accessibility elements. An accessibility container (see UIAccessibility.h) can create and vend instances of UIAccessibilityElement to cover for user interface items that are not backed by a UIView (for example: painted text or icon).
-
-
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 protectedUIAccessibilityElement(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectaccessibilityContainer()CGRectaccessibilityFrame()Returns the frame of the element in screen coordinates.CGRectaccessibilityFrameInContainerSpace()When set, -[UIAccessibilityElement accessibilityFrame] will automatically adjust for the container's frame.java.lang.StringaccessibilityHint()Returns a localized string that describes the result of performing an action on the element, when the result is non-obvious.java.lang.StringaccessibilityIdentifier()A string that identifies the user interface element.java.lang.StringaccessibilityLabel()Returns the localized label that represents the element.longaccessibilityTraits()Returns a UIAccessibilityTraits mask that is the OR combination of all accessibility traits that best characterize the element.java.lang.StringaccessibilityValue()Returns a localized string that represents the value of the element, such as the value of a slider or the text in a text field.static booleanaccessInstanceVariablesDirectly()static UIAccessibilityElementalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()UIAccessibilityElementinit()UIAccessibilityElementinitWithAccessibilityContainer(java.lang.Object container)initialize with the accessibility container that contains this elementstatic 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)booleanisAccessibilityElement()Return YES if the receiver should be exposed as an accessibility element.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAccessibilityContainer(java.lang.Object value)voidsetAccessibilityContainer_unsafe(java.lang.Object value)voidsetAccessibilityFrame(CGRect value)Returns the frame of the element in screen coordinates.voidsetAccessibilityFrameInContainerSpace(CGRect value)When set, -[UIAccessibilityElement accessibilityFrame] will automatically adjust for the container's frame.voidsetAccessibilityHint(java.lang.String value)Returns a localized string that describes the result of performing an action on the element, when the result is non-obvious.voidsetAccessibilityIdentifier(java.lang.String value)A string that identifies the user interface element.voidsetAccessibilityLabel(java.lang.String value)Returns the localized label that represents the element.voidsetAccessibilityTraits(long value)Returns a UIAccessibilityTraits mask that is the OR combination of all accessibility traits that best characterize the element.voidsetAccessibilityValue(java.lang.String value)Returns a localized string that represents the value of the element, such as the value of a slider or the text in a text field.voidsetIsAccessibilityElement(boolean value)Return YES if the receiver should be exposed as an accessibility element.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
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, accessibilityIncrement, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityUserInputLabels, 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, 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, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityUserInputLabels, setAccessibilityViewIsModal, 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 UIAccessibilityElement 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()
-
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()
-
accessibilityContainer
public java.lang.Object accessibilityContainer()
-
accessibilityFrame
public CGRect accessibilityFrame()
Description copied from class:NSObjectReturns the frame of the element in screen coordinates. default == CGRectZero default on UIViews == the frame of the view Setting the property will change the frame that is returned to the accessibility client.- Overrides:
accessibilityFramein classNSObject
-
accessibilityFrameInContainerSpace
public CGRect accessibilityFrameInContainerSpace()
When set, -[UIAccessibilityElement accessibilityFrame] will automatically adjust for the container's frame. This can be useful when the element is a descendant of a scroll view, for instance.
-
accessibilityHint
public java.lang.String accessibilityHint()
Description copied from class:NSObjectReturns a localized string that describes the result of performing an action on the element, when the result is non-obvious. The hint should be a brief phrase. For example: "Purchases the item." or "Downloads the attachment." default == nil Setting the property will change the hint that is returned to the accessibility client.- Overrides:
accessibilityHintin classNSObject
-
accessibilityIdentifier
public java.lang.String accessibilityIdentifier()
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- Specified by:
accessibilityIdentifierin interfaceUIAccessibilityIdentification
-
accessibilityLabel
public java.lang.String accessibilityLabel()
Description copied from class:NSObjectReturns the localized label that represents the element. If the element does not display text (an icon for example), this method should return text that best labels the element. For example: "Play" could be used for a button that is used to play music. "Play button" should not be used, since there is a trait that identifies the control is a button. default == nil default on UIKit controls == derived from the title Setting the property will change the label that is returned to the accessibility client.- Overrides:
accessibilityLabelin classNSObject
-
accessibilityTraits
public long accessibilityTraits()
Description copied from class:NSObjectReturns a UIAccessibilityTraits mask that is the OR combination of all accessibility traits that best characterize the element. See UIAccessibilityConstants.h for a list of traits. When overriding this method, remember to combine your custom traits with [super accessibilityTraits]. default == UIAccessibilityTraitNone default on UIKit controls == traits that best characterize individual controls. Setting the property will change the traits that are returned to the accessibility client.- Overrides:
accessibilityTraitsin classNSObject
-
accessibilityValue
public java.lang.String accessibilityValue()
Description copied from class:NSObjectReturns a localized string that represents the value of the element, such as the value of a slider or the text in a text field. Use only when the label of the element differs from a value. For example: A volume slider has a label of "Volume", but a value of "60%". default == nil default on UIKit controls == values for appropriate controls Setting the property will change the value that is returned to the accessibility client.- Overrides:
accessibilityValuein classNSObject
-
init
public UIAccessibilityElement init()
- Overrides:
initin classUIResponder
-
initWithAccessibilityContainer
public UIAccessibilityElement initWithAccessibilityContainer(java.lang.Object container)
initialize with the accessibility container that contains this element
-
isAccessibilityElement
public boolean isAccessibilityElement()
Description copied from class:NSObjectReturn YES if the receiver should be exposed as an accessibility element. default == NO default on UIKit controls == YES Setting the property to YES will cause the receiver to be visible to assistive applications.- Overrides:
isAccessibilityElementin classNSObject
-
setAccessibilityContainer_unsafe
public void setAccessibilityContainer_unsafe(java.lang.Object value)
-
setAccessibilityContainer
public void setAccessibilityContainer(java.lang.Object value)
-
setAccessibilityFrame
public void setAccessibilityFrame(CGRect value)
Description copied from class:NSObjectReturns the frame of the element in screen coordinates. default == CGRectZero default on UIViews == the frame of the view Setting the property will change the frame that is returned to the accessibility client.- Overrides:
setAccessibilityFramein classNSObject
-
setAccessibilityFrameInContainerSpace
public void setAccessibilityFrameInContainerSpace(CGRect value)
When set, -[UIAccessibilityElement accessibilityFrame] will automatically adjust for the container's frame. This can be useful when the element is a descendant of a scroll view, for instance.
-
setAccessibilityHint
public void setAccessibilityHint(java.lang.String value)
Description copied from class:NSObjectReturns a localized string that describes the result of performing an action on the element, when the result is non-obvious. The hint should be a brief phrase. For example: "Purchases the item." or "Downloads the attachment." default == nil Setting the property will change the hint that is returned to the accessibility client.- Overrides:
setAccessibilityHintin classNSObject
-
setAccessibilityIdentifier
public void setAccessibilityIdentifier(java.lang.String value)
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- Specified by:
setAccessibilityIdentifierin interfaceUIAccessibilityIdentification
-
setAccessibilityLabel
public void setAccessibilityLabel(java.lang.String value)
Description copied from class:NSObjectReturns the localized label that represents the element. If the element does not display text (an icon for example), this method should return text that best labels the element. For example: "Play" could be used for a button that is used to play music. "Play button" should not be used, since there is a trait that identifies the control is a button. default == nil default on UIKit controls == derived from the title Setting the property will change the label that is returned to the accessibility client.- Overrides:
setAccessibilityLabelin classNSObject
-
setAccessibilityTraits
public void setAccessibilityTraits(long value)
Description copied from class:NSObjectReturns a UIAccessibilityTraits mask that is the OR combination of all accessibility traits that best characterize the element. See UIAccessibilityConstants.h for a list of traits. When overriding this method, remember to combine your custom traits with [super accessibilityTraits]. default == UIAccessibilityTraitNone default on UIKit controls == traits that best characterize individual controls. Setting the property will change the traits that are returned to the accessibility client.- Overrides:
setAccessibilityTraitsin classNSObject
-
setAccessibilityValue
public void setAccessibilityValue(java.lang.String value)
Description copied from class:NSObjectReturns a localized string that represents the value of the element, such as the value of a slider or the text in a text field. Use only when the label of the element differs from a value. For example: A volume slider has a label of "Volume", but a value of "60%". default == nil default on UIKit controls == values for appropriate controls Setting the property will change the value that is returned to the accessibility client.- Overrides:
setAccessibilityValuein classNSObject
-
setIsAccessibilityElement
public void setIsAccessibilityElement(boolean value)
Description copied from class:NSObjectReturn YES if the receiver should be exposed as an accessibility element. default == NO default on UIKit controls == YES Setting the property to YES will cause the receiver to be visible to assistive applications.- Overrides:
setIsAccessibilityElementin classNSObject
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
-