init(notificationCanAlert:suppressedByFocus:kind:sound:)
Initializes an alerting context with notification alert conditions.
Declaration
init(notificationCanAlert: Bool = false, suppressedByFocus: Bool = false, kind: AlertingContext.Kind = .notification, sound: AlertingContext.Sound? = nil)Parameters
- notificationCanAlert:
A Boolean value that indicates whether the notification can alert.
- suppressedByFocus:
A Boolean value that indicates whether Focus suppresses the alert.
- kind:
The classification for the notification type.
- sound:
An optional sound configuration for the notification.