Contents

AXUIElementCopyMultipleAttributeValues(_:_:_:_:)

Returns the values of multiple attributes in the accessibility object.

Declaration

func AXUIElementCopyMultipleAttributeValues(_ element: AXUIElement, _ attributes: CFArray, _ options: AXCopyMultipleAttributeOptions, _ values: UnsafeMutablePointer<CFArray?>) -> AXError

Parameters

  • element:

    The AXUIElementRef representing the accessibility object.

  • attributes:

    An array of attribute names.

  • options:

    A value that tells AXUIElementCopyMultipleAttributeValues how to handle errors.

  • values:

    On return, an array in which each position contains the value of the attribute that is in the corresponding position in the passed-in attributes array (or CFNull). If options = 0, the values array can contain an AXValueRef of type kAXValueAXErrorType in the corresponding position. If options = kAXCopyMultipleAttributeOptionStopOnError, this function will return immediately when it gets an error.

Return Value

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

kAXErrorIllegalArgument

One of the arguments is an illegal value.

kAXErrorInvalidUIElement

The AXUIElementRef is invalid.

kAXErrorCannotComplete

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

kAXErrorNotImplemented

The process does not fully support the accessibility API.

Discussion

If the specified AXUIElementRef does not support an attribute passed in the attributes array, the returned array can contain an error or CFNull at the corresponding position.

See Also

Miscellaneous