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) -> AXErrorParameters
- 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:
kAXErrorInvalidUIElementObserverThe observer is not a valid AXObserverRef type.
kAXErrorIllegalArgumentOne or more of the arguments is an illegal value or the length of the notification name is greater than 1024.
kAXErrorNotificationUnsupportedThe accessibility object does not support notifications (note that the system-wide accessibility object does not support notifications).
kAXErrorNotificationNotRegisteredThis observer has not registered for any notifications.
kAXErrorCannotCompleteThe function cannot complete because messaging has failed in some way.
kAXErrorFailureThere is some sort of system memory failure.