---
title: AXUIElement.h
framework: Application Services
role: collectionGroup
role_heading: API Collection
path: applicationservices/axuielement_h
---

# AXUIElement.h

## Overview

Overview See the Overview section above for header-level documentation. Overview Assistive applications use the functions defined in this header file to communicate with and control accessible applications running in macOS. Each accessible user interface element in an application is represented by an AXUIElementRef, which is a CFTypeRef. AXUIElementRefs (like all CFTypeRefs) can be used with all the Core Foundation polymorphic functions, such as CFRetain, CFRelease, and CFEqual(_:_:). All functions defined in this header file return kAXErrorSuccess on success. If there is some sort of system memory failure, such as the failure to allocate an object, all functions can return kAXErrorFailure. In the unlikely event that some process does not fully support the accessibility API, a function can return kAXErrorNotImplemented. In addition, some functions can return the following error codes: For more information on the definition and use of accessibility objects and in macOS accessibility support in general, see Accessibility Programming Guide for OS X. Included Headers <AvailabilityMacros.h> <CoreFoundation/CoreFoundation.h> <ApplicationServices/ApplicationServices.h>

## Topics

### Notification API

- [AXObserverAddNotification(_:_:_:_:)](applicationservices/1462089-axobserveraddnotification.md)
- [AXObserverCreate(_:_:_:)](applicationservices/1460133-axobservercreate.md)
- [AXObserverCreateWithInfoCallback(_:_:_:)](applicationservices/1460610-axobservercreatewithinfocallback.md)
- [AXObserverGetRunLoopSource(_:)](applicationservices/1459139-axobservergetrunloopsource.md)
- [AXObserverGetTypeID()](applicationservices/1461244-axobservergettypeid.md)
- [AXObserverRemoveNotification(_:_:_:)](applicationservices/1462066-axobserverremovenotification.md)

### Miscellaneous

- [AXIsProcessTrusted()](applicationservices/1460720-axisprocesstrusted.md)
- [AXIsProcessTrustedWithOptions(_:)](applicationservices/1459186-axisprocesstrustedwithoptions.md)
- [AXUIElementCopyActionDescription(_:_:_:)](applicationservices/1462075-axuielementcopyactiondescription.md)
- [AXUIElementCopyActionNames(_:_:)](applicationservices/1462053-axuielementcopyactionnames.md)
- [AXUIElementCopyAttributeNames(_:_:)](applicationservices/1459475-axuielementcopyattributenames.md)
- [AXUIElementCopyAttributeValue(_:_:_:)](applicationservices/1462085-axuielementcopyattributevalue.md)
- [AXUIElementCopyAttributeValues(_:_:_:_:_:)](applicationservices/1462060-axuielementcopyattributevalues.md)
- [AXUIElementCopyElementAtPosition(_:_:_:_:)](applicationservices/1462077-axuielementcopyelementatposition.md)
- [AXUIElementCopyMultipleAttributeValues(_:_:_:_:)](applicationservices/1462051-axuielementcopymultipleattribute.md)
- [AXUIElementCopyParameterizedAttributeNames(_:_:)](applicationservices/1458783-axuielementcopyparameterizedattr.md)
- [AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)](applicationservices/1461203-axuielementcopyparameterizedattr.md)
- [AXUIElementCreateApplication(_:)](applicationservices/1459374-axuielementcreateapplication.md)
- [AXUIElementCreateSystemWide()](applicationservices/1462095-axuielementcreatesystemwide.md)
- [AXUIElementGetAttributeValueCount(_:_:_:)](applicationservices/1459066-axuielementgetattributevaluecoun.md)
- [AXUIElementGetPid(_:_:)](applicationservices/1460337-axuielementgetpid.md)
- [AXUIElementGetTypeID()](applicationservices/1460085-axuielementgettypeid.md)
- [AXUIElementIsAttributeSettable(_:_:_:)](applicationservices/1459972-axuielementisattributesettable.md)
- [AXUIElementPerformAction(_:_:)](applicationservices/1462091-axuielementperformaction.md)
- [AXUIElementSetAttributeValue(_:_:_:)](applicationservices/1460434-axuielementsetattributevalue.md)
- [AXUIElementSetMessagingTimeout(_:_:)](applicationservices/1459345-axuielementsetmessagingtimeout.md)

### Callbacks

- [AXObserverCallback](applicationservices/axobservercallback.md)
- [AXObserverCallbackWithInfo](applicationservices/axobservercallbackwithinfo.md)

### Data Types

- [AXCopyMultipleAttributeOptions](applicationservices/axcopymultipleattributeoptions.md)
- [AXObserver](applicationservices/axobserver.md)
- [AXUIElement](applicationservices/axuielement.md)
