MediaAction enum
The actions associated with playing audio.
Values
- stop → const MediaAction
-
Stop playing audio.
- pause → const MediaAction
-
Pause audio.
- play → const MediaAction
-
Play or resume audio.
- rewind → const MediaAction
-
Rewind.
- skipToPrevious → const MediaAction
-
Skip to the previous media item.
- skipToNext → const MediaAction
-
Skip to the next media item.
- fastForward → const MediaAction
-
Fast forward.
- setRating → const MediaAction
-
Set a rating for the current media item.
- seek → const MediaAction
-
Seek within the current media item.
- playPause → const MediaAction
-
Toggle between playing and paused.
- playFromMediaId → const MediaAction
-
Play a given media item by ID.
- playFromSearch → const MediaAction
-
Play media from a search.
- skipToQueueItem → const MediaAction
-
Skip to a queue item.
- playFromUri → const MediaAction
-
Play media from a URI.
- prepare → const MediaAction
-
Prepare media for playback.
- prepareFromMediaId → const MediaAction
-
Prepare media for playback by ID.
- prepareFromSearch → const MediaAction
-
Prepare media for playback from a search.
- prepareFromUri → const MediaAction
-
Prepare media for playback from a URI.
- setRepeatMode → const MediaAction
-
Set the repeat mode.
- setCaptioningEnabled → const MediaAction
-
Set captioning enabled.
- setShuffleMode → const MediaAction
-
Set the shuffle mode.
- seekBackward → const MediaAction
-
Seek backwards continuously.
- seekForward → const MediaAction
-
Seek forwards continuously.
- setSpeed → const MediaAction
-
Set speed.
- custom → const MediaAction
-
Custom MediaAction.
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<
MediaAction> - A constant List of the values in this enum, in order of their declaration.