Instance Property

alertStyle

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

Declaration

iOS, Mac Catalyst
@property(readonly, nonatomic) UNAlertStyle alertStyle;
macOS
@property(readonly, atomic) UNAlertStyle alertStyle;

Discussion

When alerts are authorized, this property specifies the presentation style for alerts when the device is unlocked. The user may choose to display alerts as automatically disappearing banners or as modal windows that require explicit dismissal. The user may also choose not to display alerts at all.

See Also

Getting Interface Settings

UNAlertStyle

Constants indicating the presentation styles for alerts.

showPreviewsSetting

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

UNShowPreviewsSetting

Constants indicating the style previewing a notification's content.

providesAppNotificationSettings

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