Enumeration

CFNotificationSuspensionBehavior

Suspension flags that indicate how distributed notifications should be handled when the receiving application is in the background.

Declaration

enum CFNotificationSuspensionBehavior : CFIndex

Overview

An application selects the suspension behavior for a given notification when it registers an observer for that notification with CFNotificationCenterAddObserver(_:_:_:_:_:_:).

Topics

Constants

case drop

The server will not queue any notifications of the specified name and object while the receiving application is in the background.

case coalesce

The server will only queue the last notification of the specified name and object; earlier notifications are dropped.

case hold

The server will hold all matching notifications until the queue has been filled (queue size determined by the server) at which point the server may flush queued notifications.

case deliverImmediately

The server will deliver notifications of the specified name and object whether or not the application is in the background. When a notification with this suspension behavior is matched, it has the effect of first flushing any queued notifications.

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