AXUIElementCopyAttributeNames(_:_:)
Returns a list of all the attributes supported by the specified accessibility object.
Declaration
func AXUIElementCopyAttributeNames(_ element: AXUIElement, _ names: UnsafeMutablePointer<CFArray?>) -> AXErrorParameters
- 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:
kAXErrorAttributeUnsupportedThe specified AXUIElementRef does not support the specified attribute.
kAXErrorIllegalArgumentOne or both of the arguments is an illegal value.
kAXErrorInvalidUIElementThe AXUIElementRef is invalid.
kAXErrorFailureThere was a system memory failure.
kAXErrorCannotCompleteThe function cannot complete because messaging has failed in some way.
kAXErrorNotImplementedThe process does not fully support the accessibility API.
See Also
Miscellaneous
AXIsProcessTrusted()AXIsProcessTrustedWithOptions(_:)AXUIElementCopyActionDescription(_:_:_:)AXUIElementCopyActionNames(_:_:)AXUIElementCopyAttributeValue(_:_:_:)AXUIElementCopyAttributeValues(_:_:_:_:_:)AXUIElementCopyElementAtPosition(_:_:_:_:)AXUIElementCopyMultipleAttributeValues(_:_:_:_:)AXUIElementCopyParameterizedAttributeNames(_:_:)AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)AXUIElementCreateApplication(_:)AXUIElementCreateSystemWide()AXUIElementGetAttributeValueCount(_:_:_:)AXUIElementGetPid(_:_:)AXUIElementGetTypeID()AXUIElementIsAttributeSettable(_:_:_:)AXUIElementPerformAction(_:_:)AXUIElementSetAttributeValue(_:_:_:)AXUIElementSetMessagingTimeout(_:_:)