Instance Property

lockScreenSetting

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

Declaration

var lockScreenSetting: UNNotificationSetting { get }

Discussion

Even if the user disables lock screen notifications, your notifications may still appear onscreen when the device is unlocked.

See Also

Getting Device-Specific Settings

var notificationCenterSetting: UNNotificationSetting

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

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.