InterruptionLevel enum

Type used to indicate the importance and delivery timing of a notification.

Corresponds to UNNotificationInterruptionLevel.

Inheritance
Available extensions

Values

passive → const InterruptionLevel

The system adds the notification to the notification list without lighting up the screen or playing a sound.

Corresponds to UNNotificationInterruptionLevel.passive.

active → const InterruptionLevel

The system presents the notification immediately, lights up the screen, and can play a sound.

Corresponds to UNNotificationInterruptionLevel.active.

timeSensitive → const InterruptionLevel

The system presents the notification immediately, lights up the screen, and can play a sound, but won’t break through system notification controls.

In order for this to work, the 'Time Sensitive Notifications' capability needs to be added to the iOS project. See https://help.apple.com/xcode/mac/current/#/dev88ff319e7

Corresponds to UNNotificationInterruptionLevel.timeSensitive.

critical → const InterruptionLevel

The system presents the notification immediately, lights up the screen, and bypasses the mute switch to play a sound.

Subject to specific approval from Apple: https://developer.apple.com/contact/request/notifications-critical-alerts-entitlement/

Corresponds to UNNotificationInterruptionLevel.critical.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<InterruptionLevel>
A constant List of the values in this enum, in order of their declaration.