Instance Method

accessibilityActionDescription(_:)

Returns a localized description of the specified action.

Declaration

func accessibilityActionDescription(_ action: NSAccessibilityActionName) -> String?

Parameters

action

The action attribute.

Return Value

The description of the specified action, in a localized string.

Discussion

User interface classes must implement this method to return descriptions for all actions returned from accessibilityActionNames(). A button, for example, might return the string "press” for the NSAccessibilityPressAction action. Subclasses should invoke the superclass's implementation, if it exists, to obtain the descriptions of any inherited actions.

See Also

Deprecated Methods

func accessibilityActionNames()

Returns an array of action names supported by the accessibility element.

Deprecated
func accessibilityArrayAttributeCount(NSAccessibilityAttributeName)

Returns the count of the specified accessibility array attribute.

func accessibilityArrayAttributeValues(NSAccessibilityAttributeName, index: Int, maxCount: Int)

Returns a subarray of values of an accessibility array attribute.

func accessibilityAttributeNames()

Returns an array of attribute names supported by the receiver.

Deprecated
func accessibilityAttributeValue(NSAccessibilityAttributeName)

Returns the value of the specified attribute in the receiver.

Deprecated
func accessibilityAttributeValue(NSAccessibilityParameterizedAttributeName, forParameter: Any?)

Returns the value of the receiver's parameterized attribute corresponding to the specified attribute name and parameter.

Deprecated
func accessibilityIndex(ofChild: Any)

Returns the index of the specified accessibility child in the parent.

func accessibilityIsAttributeSettable(NSAccessibilityAttributeName)

Returns a Boolean value that indicates whether the value for the specified attribute in the receiver can be set.

Deprecated
func accessibilityIsIgnored()

Returns a Boolean value indicating whether the receiver should be ignored in the parent-child accessibility hierarchy.

Deprecated
func accessibilityParameterizedAttributeNames()

Returns a list of parameterized attribute names supported by the receiver.

Deprecated
func accessibilityPerformAction(NSAccessibilityActionName)

Performs the action associated with the specified action.

Deprecated
func accessibilitySetOverrideValue(Any?, forAttribute: NSAccessibilityAttributeName)

Overrides the specified attribute in the receiver or adds it if it does not exist, and sets its value to the specified value.

Deprecated
func accessibilitySetValue(Any?, forAttribute: NSAccessibilityAttributeName)

Sets the value of the specified attribute in the receiver to the specified value.

Deprecated