init(direction:language:tag:icon:badgeIcon:vibrate:shouldRenotify:isSilent:requiresInteraction:)
Initialize notification options.
init(direction: Direction = .auto, language: String? = nil, tag: String? = nil, icon: URL? = nil, badgeIcon: URL? = nil, vibrate: [Int] = [], shouldRenotify: Bool = false, isSilent: Bool = false, requiresInteraction: Bool = false)
Parameters
- direction
The language direction for the notification. Defaults to
auto
.- language
The language tag for the notification. Defaults to
nil
.- tag
The tag to deduplicate or replace presentation of the notification. Defaults to
nil
.- icon
A URL for the icon the notification should use. Defaults to
nil
.- badgeIcon
A URL for the badge icon the notification should use. Defaults to
nil
.- vibrate
A vibration pattern the notification should use. Defaults to
nil
.- shouldRenotify
A preference indicating if the notification with the same tag should be re-presented. Defaults to
false
.- isSilent
A preference indicating if the notification should be presented without sound or vibrations. Defaults to
false
.- requiresInteraction
A preference indicating if the notification stays on screen until the user interacts with it. Defaults to
false
.