Instance Property

notificationCenterSetting

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

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, nonatomic) UNNotificationSetting notificationCenterSetting;
macOS
@property(readonly, atomic) UNNotificationSetting notificationCenterSetting;

Discussion

The default value of this property is UNNotificationSettingEnabled.

See Also

Getting Device-Specific Settings

lockScreenSetting

The setting that indicates whether your app’s notifications appear on a device’s Lock screen.

carPlaySetting

The setting that indicates whether your app’s notifications appear in CarPlay.

alertSetting

The authorization status for displaying alerts.

badgeSetting

The setting that indicates whether badges appear on your app’s icon.

soundSetting

The authorization status for playing sounds for incoming notifications.

criticalAlertSetting

The authorization status for playing sounds for critical alerts.

announcementSetting

The setting that indicates whether Siri can announce your app’s notifications.

UNNotificationSetting

Constants that indicate the current status of a notification setting.