|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > User Experience > Accessibility > Accessibility (ApplicationServices/HIServices) Reference
|
AXNotificationConstants.h |
Assistive applications can register to be notified about certain events in a target application. For example, creation of a window or the destruction
of a UIElement. To receive notifications you must first create an observer and specify a callback function; second, add the observer's run loop source
to the run loop on which you want the callback executed; and third, register the observer for one or more notifications.
When you create the observer, you specify the application being observed. An observer can receive notifications only from UIElements in that application.
To handle multiple applications, you have to create at least one observer per application.
When you register an observer for a notification, you specify the UIElement you are interested in observing. When you want to receive a notification from
any element in an application, use the application UIElement; you then receive the notification regardless of which element in the application sends the
notification. This is useful if the UIElement does not exist yet, such as when a new window is created, or if you care about state changes, such as the
keyboard focus moving, without having to observe every element separately. When the callback function is executed it is passed the UIElement that was
affected by the notification.
Observers are represented by the AXObserverRef type, which is a CFType. Like all CFTypes they are reference counted (CFRetain/CFRelease).
and Outline Notifications
- kAXRowCountChangedNotification
- kAXSelectedColumnsChangedNotification
- kAXSelectedRowsChangedNotification
Drawer, Sheet, and Help Notifications
- kAXDrawerCreatedNotification
- kAXHelpTagCreatedNotification
- kAXSheetCreatedNotification
Notifications
- kAXCreatedNotification
- kAXMovedNotification
- kAXResizedNotification
- kAXSelectedChildrenChangedNotification
- kAXSelectedTextChangedNotification
Notifications
- kAXFocusedUIElementChangedNotification
- kAXFocusedWindowChangedNotification
- kAXMainWindowChangedNotification
Notifications
- kAXApplicationActivatedNotification
- kAXApplicationDeactivatedNotification
- kAXApplicationHiddenNotification
- kAXApplicationShownNotification
Notifications
- kAXUIElementDestroyedNotification
- kAXValueChangedNotification
Notifications
- kAXWindowCreatedNotification
- kAXWindowDeminiaturizedNotification
- kAXWindowMiniaturizedNotification
- kAXWindowMovedNotification
- kAXWindowResizedNotification
Notifications
- kAXMenuClosedNotification
- kAXMenuItemSelectedNotification
- kAXMenuOpenedNotification
kAXApplicationActivatedNotification |
#define kAXApplicationActivatedNotification CFSTR("AXApplicationActivated")
Application UIElement
kAXApplicationDeactivatedNotification |
#define kAXApplicationDeactivatedNotification CFSTR("AXApplicationDeactivated")
Application UIElement
kAXApplicationHiddenNotification |
#define kAXApplicationHiddenNotification CFSTR("AXApplicationHidden")
Application UIElement
kAXApplicationShownNotification |
#define kAXApplicationShownNotification CFSTR("AXApplicationShown")
Application UIElement
kAXCreatedNotification |
#define kAXCreatedNotification CFSTR("AXCreated")
An element was created.
kAXDrawerCreatedNotification |
#define kAXDrawerCreatedNotification CFSTR("AXDrawerCreated")
kAXFocusedUIElementChangedNotification |
#define kAXFocusedUIElementChangedNotification CFSTR("AXFocusedUIElementChanged")
New focused UIElement or Application UIElement if there's no focus
kAXFocusedWindowChangedNotification |
#define kAXFocusedWindowChangedNotification CFSTR("AXFocusedWindowChanged")
kAXHelpTagCreatedNotification |
#define kAXHelpTagCreatedNotification CFSTR("AXHelpTagCreated")
kAXMainWindowChangedNotification |
#define kAXMainWindowChangedNotification CFSTR("AXMainWindowChanged")
New main window UIElement or Application UIElment if there's no main window
kAXMenuClosedNotification |
#define kAXMenuClosedNotification CFSTR("AXMenuClosed")
Closed menu UIElement
kAXMenuItemSelectedNotification |
#define kAXMenuItemSelectedNotification CFSTR("AXMenuItemSelected")
Selected menu item UIElement
kAXMenuOpenedNotification |
#define kAXMenuOpenedNotification CFSTR("AXMenuOpened")
Open Menu UIElement
kAXMovedNotification |
#define kAXMovedNotification CFSTR("AXMoved")
This element has moved.
kAXResizedNotification |
#define kAXResizedNotification CFSTR("AXResized")
This element has been resized.
kAXRowCountChangedNotification |
#define kAXRowCountChangedNotification CFSTR("AXRowCountChangedNotification")
The number of rows in this table has changed.
kAXSelectedChildrenChangedNotification |
#define kAXSelectedChildrenChangedNotification CFSTR("AXSelectedChildrenChanged")
A different subset of this element's children were selected.
kAXSelectedColumnsChangedNotification |
#define kAXSelectedColumnsChangedNotification CFSTR("AXSelectedColumnsChanged")
A different set of columns was selected.
kAXSelectedRowsChangedNotification |
#define kAXSelectedRowsChangedNotification CFSTR("AXSelectedRowsChanged")
A different set of rows was selected.
kAXSelectedTextChangedNotification |
#define kAXSelectedTextChangedNotification CFSTR("AXSelectedTextChanged")
A different set of text was selected.
kAXSheetCreatedNotification |
#define kAXSheetCreatedNotification CFSTR("AXSheetCreated")
kAXUIElementDestroyedNotification |
#define kAXUIElementDestroyedNotification CFSTR("AXUIElementDestroyed")
Destroyed UIElement
The returned UIElement is no longer valid in the target application. You can still use the local reference
with calls like CFEqual (for example, to remove it from a list), but you should not pass it to the accessibility APIs.
kAXValueChangedNotification |
#define kAXValueChangedNotification CFSTR("AXValueChanged")
Modified UIElement
This notification is sent when the value of the UIElement's value attribute has changed, not when the value of any other attribute has changed.
kAXWindowCreatedNotification |
#define kAXWindowCreatedNotification CFSTR("AXWindowCreated")
New window UIElement
kAXWindowDeminiaturizedNotification |
#define kAXWindowDeminiaturizedNotification CFSTR("AXWindowDeminiaturized")
Unminimized window UIElement
kAXWindowMiniaturizedNotification |
#define kAXWindowMiniaturizedNotification CFSTR("AXWindowMiniaturized")
Minimized window UIElement
kAXWindowMovedNotification |
#define kAXWindowMovedNotification CFSTR("AXWindowMoved")
Moved window UIElement
This notification is sent at the end of the window move, not continuously as the window is being moved.
kAXWindowResizedNotification |
#define kAXWindowResizedNotification CFSTR("AXWindowResized")
Resized window UIElement
This notification is sent at the end of the window resize, not continuously as the window is being resized.
|