MediaAction enum Null safety

The actons associated with playing audio.

Inheritance

Constructors

MediaAction()
const

Values

stop → const MediaAction

Stop playing audio.

const MediaAction(0)
pause → const MediaAction

Pause audio.

const MediaAction(1)
play → const MediaAction

Play or resume audio.

const MediaAction(2)
rewind → const MediaAction

Rewind.

const MediaAction(3)
skipToPrevious → const MediaAction

Skip to the previous media item.

const MediaAction(4)
skipToNext → const MediaAction

Skip to the next media item.

const MediaAction(5)
fastForward → const MediaAction

Fast forward.

const MediaAction(6)
setRating → const MediaAction

Set a rating for the current media item.

const MediaAction(7)
seek → const MediaAction

Seek within the current media item.

const MediaAction(8)
playPause → const MediaAction

Toggle between playing and paused.

const MediaAction(9)
playFromMediaId → const MediaAction

Play a given media item by ID.

const MediaAction(10)
playFromSearch → const MediaAction

Play media from a search.

const MediaAction(11)
skipToQueueItem → const MediaAction

Skip to a queue item.

const MediaAction(12)
playFromUri → const MediaAction

Play media from a URI.

const MediaAction(13)
prepare → const MediaAction

Prepare media for playback.

const MediaAction(14)
prepareFromMediaId → const MediaAction

Prepare media for playback by ID.

const MediaAction(15)
prepareFromSearch → const MediaAction

Prepare media for playback from a search.

const MediaAction(16)
prepareFromUri → const MediaAction

Prepare media for playback from a URI.

const MediaAction(17)
setRepeatMode → const MediaAction

Set the repeat mode.

const MediaAction(18)
setCaptioningEnabled → const MediaAction

Set captioning enabled.

const MediaAction(20)
setShuffleMode → const MediaAction

Set the shuffle mode.

const MediaAction(21)
seekBackward → const MediaAction

Seek backwards continuously.

const MediaAction(22)
seekForward → const MediaAction

Seek forwards continuously.

const MediaAction(23)
setSpeed → const MediaAction

Set speed.

const MediaAction(24)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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<MediaAction>
A constant List of the values in this enum, in order of their declaration.
[stop, pause, play, rewind, skipToPrevious, skipToNext, fastForward, setRating, seek, playPause, playFromMediaId, playFromSearch, skipToQueueItem, playFromUri, prepare, prepareFromMediaId, prepareFrom…