MediaActionMessage enum

The actions associated with playing audio. The index of each enum value from stop up to setShuffleMode is guaranteed to match the bit index of each ACTION_* constant in Android's PlaybackStateCompat class. Enum values after this are iOS/macOS specific and their indices may shift if new Android media actions are added in the future.

Inheritance

Constructors

MediaActionMessage()
const

Values

stop → const MediaActionMessage
pause → const MediaActionMessage
play → const MediaActionMessage
rewind → const MediaActionMessage
skipToPrevious → const MediaActionMessage
skipToNext → const MediaActionMessage
fastForward → const MediaActionMessage
setRating → const MediaActionMessage
seek → const MediaActionMessage
playPause → const MediaActionMessage
playFromMediaId → const MediaActionMessage
playFromSearch → const MediaActionMessage
skipToQueueItem → const MediaActionMessage
playFromUri → const MediaActionMessage
prepare → const MediaActionMessage
prepareFromMediaId → const MediaActionMessage
prepareFromSearch → const MediaActionMessage
prepareFromUri → const MediaActionMessage
setRepeatMode → const MediaActionMessage
setCaptioningEnabled → const MediaActionMessage
setShuffleMode → const MediaActionMessage
seekBackward → const MediaActionMessage
seekForward → const MediaActionMessage
setSpeed → const MediaActionMessage
custom → const MediaActionMessage

This media action should be used for custom actions.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<MediaActionMessage>
A constant List of the values in this enum, in order of their declaration.