Instance Property

notificationCenterSetting

The setting that indicates whether your app’s notifications are displayed in Notification Center.

Declaration

var notificationCenterSetting: UNNotificationSetting { get }

Discussion

The default value of this property is UNNotificationSetting.enabled.

See Also

Getting Device-Specific Settings

var lockScreenSetting: UNNotificationSetting

The setting that indicates whether your app’s notifications appear onscreen when the device is locked.

var carPlaySetting: UNNotificationSetting

The setting that indicates whether your app’s notifications may be displayed in a CarPlay environment.

var alertSetting: UNNotificationSetting

The authorization status for displaying alerts.

var badgeSetting: UNNotificationSetting

The authorization status for badging your app’s icon.

var soundSetting: UNNotificationSetting

The authorization status for playing sounds for incoming notifications.

var criticalAlertSetting: UNNotificationSetting

The authorization status to play sounds for critical alerts.

enum UNNotificationSetting

Constants indicating the current status of a notification setting.