CFNotificationCenterRemoveObserver(_:_:_:_:)
Stops an observer from receiving certain notifications.
Declaration
func CFNotificationCenterRemoveObserver(_ center: CFNotificationCenter!, _ observer: UnsafeRawPointer!, _ name: CFNotificationName!, _ object: UnsafeRawPointer!)Parameters
- center:
The notification center to modify.
- observer:
The observer. This value must not be
NULL. - name:
The name of the notification to stop observing. If
NULL,observerstops receiving callbacks for all notifications posted byobject. - object:
The object to stop observing. For distributed notifications,
objectmust be a CFString object. IfNULL,observerstops receiving callbacks for all objects posting notifications namedname.If
centeris a Darwin notification center, this value is ignored.
Discussion
If both name and object are NULL, this function unregisters observer from all the notifications for which it had previously registered with center.