Constants indicating the style previewing a notification's content.


enum UNShowPreviewsSetting : Int


Preview Styes

case always

The notification's content is always shown, even when the device is locked.

case whenAuthenticated

The notification's content is shown only when the device is unlocked.

case never

The notification's content is never shown, even when the device is unlocked

See Also

Getting Interface Settings

var alertStyle: UNAlertStyle

The type of alert that the app may display when the device is unlocked.

enum UNAlertStyle

Constants indicating the presentation styles for alerts.

var showPreviewsSetting: UNShowPreviewsSetting

The setting that indicates whether the app shows a preview of the notification's content.

var providesAppNotificationSettings: Bool

A Boolean value indicating the system displays a button for in-app notification settings.