Contents

AXObserverRemoveNotification(_:_:_:)

Removes the specified notification from the list of notifications the observer wants to receive from the accessibility object.

Declaration

func AXObserverRemoveNotification(_ observer: AXObserver, _ element: AXUIElement, _ notification: CFString) -> AXError

Parameters

  • observer:

    The observer object created from a call to 1460133 Axobservercreate.

  • element:

    The accessibility object for which this observer observes notifications.

  • notification:

    The name of the notification to remove from the list of observed notifications.

Return Value

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

kAXErrorInvalidUIElementObserver

The observer is not a valid AXObserverRef type.

kAXErrorIllegalArgument

One or more of the arguments is an illegal value or the length of the notification name is greater than 1024.

kAXErrorNotificationUnsupported

The accessibility object does not support notifications (note that the system-wide accessibility object does not support notifications).

kAXErrorNotificationNotRegistered

This observer has not registered for any notifications.

kAXErrorCannotComplete

The function cannot complete because messaging has failed in some way.

kAXErrorFailure

There is some sort of system memory failure.

See Also

Notification API