Function

CFNotificationCenterRemoveEveryObserver(_:_:)

Stops an observer from receiving any notifications from any object.

Declaration

func CFNotificationCenterRemoveEveryObserver(_ center: CFNotificationCenter!, _ observer: UnsafeRawPointer!)

Parameters

center

The notification center from which to remove observers.

observer

The observer. This value must not be NULL.

Discussion

If you no longer want an observer to receive any notifications, perhaps because the observer is being deallocated, you can call this function to unregister the observer from all the notifications for which it had previously registered.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software