InterruptionLevel class
Constants that indicate the importance and delivery timing of a notification.
This mirrors the following Apple API https://developer.apple.com/documentation/usernotifications/unnotificationinterruptionlevel
- Annotations
Constructors
- InterruptionLevel(int value)
-
Constructs an instance of InterruptionLevel
const
Properties
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.
override
Constants
- active → const InterruptionLevel
- The system presents the notification immediately, lights up the screen, and can play a sound.
- critical → const InterruptionLevel
- The system presents the notification immediately, lights up the screen, and bypasses the mute switch to play a sound.
- passive → const InterruptionLevel
- The system adds the notification to the notification list without lighting up the screen or playing a sound.
- 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.