Contents

AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)

Returns the value of an accessibility object's parameterized attribute.

Declaration

func AXUIElementCopyParameterizedAttributeValue(_ element: AXUIElement, _ parameterizedAttribute: CFString, _ parameter: CFTypeRef, _ result: UnsafeMutablePointer<CFTypeRef?>) -> AXError

Parameters

  • element:

    The AXUIElementRef representing the accessibility object.

  • parameterizedAttribute:

    The parameterized attribute.

  • parameter:

    The parameter.

  • result:

    On return, the value of the parameterized attribute.

Return Value

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

kAXErrorAttributeUnsupported or kAXErrorParameterizedAttributeUnsupported

The specified AXUIElementRef does not support the specified parameterized attribute.

kAXErrorNoValue

The specified parameterized attribute does not have a value.

kAXErrorIllegalArgument

One or more 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.

See Also

Miscellaneous