NotificationPlayState enum
Notification Layout to be used as reference to build the notification. If is not possible to build the desired layout, use the default one.
none This is the default playback state and indicates that no media has been added yet, or the performer has been reset and has no content to play. stopped State indicating this item is currently stopped. paused State indicating this item is currently paused. playing State indicating this item is currently playing. forwarding State indicating this item is currently fast forwarding. rewinding State indicating this item is currently rewinding. buffering State indicating this item is currently buffering and will begin playing when enough data has buffered. error State indicating this item is currently in an error state. The error code should also be set when entering this state. connecting On devices earlier than API 21, this will appear as STATE_BUFFERING previous State indicating the player is currently skipping to the previous item. next State indicating the player is currently skipping to the next item. skippingToQueueItem State indicating the player is currently skipping to a specific item in the queue. unknown Use this value for the position to indicate the position is not known.
Constructors
- NotificationPlayState()
-
const
Values
- unknown → const NotificationPlayState
-
Use this value for the position to indicate the position is not known.
- none → const NotificationPlayState
-
This is the default playback state and indicates that no media has been added yet, or the performer has been reset and has no content to play.
- stopped → const NotificationPlayState
-
State indicating this item is currently stopped.
- paused → const NotificationPlayState
-
State indicating this item is currently paused.
- playing → const NotificationPlayState
-
State indicating this item is currently playing.
- forwarding → const NotificationPlayState
-
State indicating this item is currently fast forwarding.
- rewinding → const NotificationPlayState
-
State indicating this item is currently rewinding.
- buffering → const NotificationPlayState
-
State indicating this item is currently buffering and will begin playing when enough data has buffered.
- error → const NotificationPlayState
-
State indicating this item is currently in an error state. The error code should also be set when entering this state.
- connecting → const NotificationPlayState
-
State indicating the class doing playback is currently connecting to a route. Depending on the implementation you may return to the previous state when the connection finishes or enter STATE_NONE. If the connection failed STATE_ERROR should be used. On devices earlier than API 21, this will appear as STATE_BUFFERING
- previous → const NotificationPlayState
-
State indicating the player is currently skipping to the previous item.
- next → const NotificationPlayState
-
State indicating the player is currently skipping to the next item.
- skippingToQueueItem → const NotificationPlayState
-
State indicating the player is currently skipping to a specific item in the queue.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → int -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
dynamic value) → NotificationPlayState?
Constants
-
values
→ const List<
NotificationPlayState> - A constant List of the values in this enum, in order of their declaration.