Contents

accessibilityActionDescription(_:)

Returns a localized description of the specified action.

Declaration

func accessibilityActionDescription(_ action: NSAccessibility.Action) -> 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