Contents

AXUIElementCopyAttributeNames(_:_:)

Returns a list of all the attributes supported by the specified accessibility object.

Declaration

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

Parameters

  • element:

    The AXUIElementRef representing the accessibility object.

  • names:

    On return, an array containing the accessibility object's attribute names.

Return Value

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

kAXErrorAttributeUnsupported

The specified AXUIElementRef does not support the specified attribute.

kAXErrorIllegalArgument

One or both of the arguments is an illegal value.

kAXErrorInvalidUIElement

The AXUIElementRef is invalid.

kAXErrorFailure

There was a 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