AlarmEventCause enum
Why the host changed an alarm without the application asking.
Values
- snooze → const AlarmEventCause
-
The user deferred the alarm from the notification or the ring screen.
- platformRefusal → const AlarmEventCause
-
The platform refused to let the ring start.
Android forbids starting a media playback foreground service from
BOOT_COMPLETED, and the refusal follows the attribution rather than the caller, so an ordinary alarm delivered inside the boot window is refused too. Paired with AlarmMoved the alarm was re-armed just past that window, because ringing late beats not ringing. Paired with AlarmDropped the retry was refused as well, which means the boot window was not the cause and waiting longer would not have helped. - staleAtBoot → const AlarmEventCause
-
The alarm's time had already passed while the device was off, so it was discarded at boot rather than sounded hours late.
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<
AlarmEventCause> - A constant List of the values in this enum, in order of their declaration.