編輯

共用方式為


CFNotificationSuspensionBehavior Enum

Definition

Flags that determine how notifications should be handled when the application is running in the background.

public enum CFNotificationSuspensionBehavior
type CFNotificationSuspensionBehavior = 
Inheritance
CFNotificationSuspensionBehavior

Fields

Name Value Description
Drop 1

The notifications will be dropped while the application is in the background.

Coalesce 2

Only the last one of the notifications posted while the application was in the background is posted.

Hold 3

Notifications are kept around in a queue, and they are all delivered serially when the application returns to the foreground.   Some notifications might be dropped if the queue overflows.

DeliverImmediately 4

The notifications are delivered immediately.  Any pending notifications that might be queued are delivered first.

Remarks

Applies to