AXUIElementCopyMultipleAttributeValues(_:_:_:_:)
Returns the values of multiple attributes in the accessibility object.
Declaration
func AXUIElementCopyMultipleAttributeValues(_ element: AXUIElement, _ attributes: CFArray, _ options: AXCopyMultipleAttributeOptions, _ values: UnsafeMutablePointer<CFArray?>) -> AXErrorParameters
- element:
The AXUIElementRef representing the accessibility object.
- attributes:
An array of attribute names.
- options:
A value that tells
AXUIElementCopyMultipleAttributeValueshow 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
attributesarray (or CFNull). Ifoptions= 0, thevaluesarray can contain an AXValueRef of typekAXValueAXErrorTypein the corresponding position. Ifoptions=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:
kAXErrorIllegalArgumentOne of the arguments is an illegal value.
kAXErrorInvalidUIElementThe AXUIElementRef is invalid.
kAXErrorCannotCompleteThe function cannot complete because messaging has failed in some way.
kAXErrorNotImplementedThe 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
AXIsProcessTrusted()AXIsProcessTrustedWithOptions(_:)AXUIElementCopyActionDescription(_:_:_:)AXUIElementCopyActionNames(_:_:)AXUIElementCopyAttributeNames(_:_:)AXUIElementCopyAttributeValue(_:_:_:)AXUIElementCopyAttributeValues(_:_:_:_:_:)AXUIElementCopyElementAtPosition(_:_:_:_:)AXUIElementCopyParameterizedAttributeNames(_:_:)AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)AXUIElementCreateApplication(_:)AXUIElementCreateSystemWide()AXUIElementGetAttributeValueCount(_:_:_:)AXUIElementGetPid(_:_:)AXUIElementGetTypeID()AXUIElementIsAttributeSettable(_:_:_:)AXUIElementPerformAction(_:_:)AXUIElementSetAttributeValue(_:_:_:)AXUIElementSetMessagingTimeout(_:_:)