Instance Method インスタンスメソッド

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 非推奨