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.