Contents

AXUIElementCopyActionNames(_:_:)

Returns a list of all the actions the specified accessibility object can perform.

Declaration

func AXUIElementCopyActionNames(_ element: AXUIElement, _ names: UnsafeMutablePointer<CFArray?>) -> AXError

Parameters

  • element:

    The AXUIElementRef representing the accessibility object.

  • names:

    On return, an array of actions the accessibility object can perform (empty if the accessibility object supports no actions).

Return Value

If unsuccessful, AXUIElementCopyActionNames may return one of the following error codes, among others:

kAXErrorIllegalArgument

One or both of the arguments is an illegal value.

kAXErrorInvalidUIElement

The AXUIElementRef is invalid.

kAXErrorFailure

There was some sort of system memory failure.

kAXErrorCannotComplete

The function cannot complete because messaging has failed in some way.

kAXErrorNotImplemented

The process does not fully support the accessibility API.

See Also

Miscellaneous