Java android.support.v4.media.session PlaybackStateCompat fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.media.session PlaybackStateCompat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.media.session PlaybackStateCompat.

The text is from its open source code.

Field

longACTION_STOP
Indicates this session supports the stop command.
longACTION_PAUSE
Indicates this session supports the pause command.
longACTION_PLAY
Indicates this session supports the play command.
longACTION_REWIND
Indicates this session supports the rewind command.
longACTION_SKIP_TO_PREVIOUS
Indicates this session supports the previous command.
longACTION_SKIP_TO_NEXT
Indicates this session supports the next command.
longACTION_FAST_FORWARD
Indicates this session supports the fast forward command.
longACTION_SET_RATING
Indicates this session supports the set rating command.
longACTION_SEEK_TO
Indicates this session supports the seek to command.
longACTION_PLAY_PAUSE
Indicates this session supports the play/pause toggle command.
longACTION_PLAY_FROM_MEDIA_ID
Indicates this session supports the play from media id command.
longACTION_PLAY_FROM_SEARCH
Indicates this session supports the play from search command.
longACTION_SKIP_TO_QUEUE_ITEM
Indicates this session supports the skip to queue item command.
longACTION_PLAY_FROM_URI
Indicates this session supports the play from URI command.
longACTION_PREPARE
Indicates this session supports the prepare command.
longACTION_PREPARE_FROM_MEDIA_ID
Indicates this session supports the prepare from media id command.
longACTION_PREPARE_FROM_SEARCH
Indicates this session supports the prepare from search command.
longACTION_PREPARE_FROM_URI
Indicates this session supports the prepare from URI command.
longACTION_SET_REPEAT_MODE
Indicates this session supports the set repeat mode command.
longACTION_SET_CAPTIONING_ENABLED
Indicates this session supports the set captioning enabled command.
longACTION_SET_SHUFFLE_MODE
Indicates this session supports the set shuffle mode command.
intSTATE_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.
intSTATE_STOPPED
State indicating this item is currently stopped.
intSTATE_PAUSED
State indicating this item is currently paused.
intSTATE_PLAYING
State indicating this item is currently playing.
intSTATE_FAST_FORWARDING
State indicating this item is currently fast forwarding.
intSTATE_REWINDING
State indicating this item is currently rewinding.
intSTATE_BUFFERING
State indicating this item is currently buffering and will begin playing when enough data has buffered.
intSTATE_ERROR
State indicating this item is currently in an error state.
intSTATE_CONNECTING
State indicating the class doing playback is currently connecting to a route.
intSTATE_SKIPPING_TO_PREVIOUS
State indicating the player is currently skipping to the previous item.
intSTATE_SKIPPING_TO_NEXT
State indicating the player is currently skipping to the next item.
intSTATE_SKIPPING_TO_QUEUE_ITEM
State indicating the player is currently skipping to a specific item in the queue.
longPLAYBACK_POSITION_UNKNOWN
Use this value for the position to indicate the position is not known.
intREPEAT_MODE_NONE
Use this value with MediaControllerCompat.TransportControls#setRepeatMode to indicate that the playback will be stopped at the end of the playing media list.
intREPEAT_MODE_ONE
Use this value with MediaControllerCompat.TransportControls#setRepeatMode to indicate that the playback of the current playing media item will be repeated.
intREPEAT_MODE_ALL
Use this value with MediaControllerCompat.TransportControls#setRepeatMode to indicate that the playback of the playing media list will be repeated.
intREPEAT_MODE_GROUP
Use this value with MediaControllerCompat.TransportControls#setRepeatMode to indicate that the playback of the playing media group will be repeated.
intSHUFFLE_MODE_NONE
Use this value with MediaControllerCompat.TransportControls#setShuffleMode to indicate that the media list will be played in order.
intSHUFFLE_MODE_ALL
Use this value with MediaControllerCompat.TransportControls#setShuffleMode to indicate that the media list will be played in shuffled order.
intSHUFFLE_MODE_GROUP
Use this value with MediaControllerCompat.TransportControls#setShuffleMode to indicate that the media group will be played in shuffled order.
intERROR_CODE_UNKNOWN_ERROR
This is the default error code and indicates that none of the other error codes applies.
intERROR_CODE_APP_ERROR
Error code when the application state is invalid to fulfill the request.

Method

longgetActions()
Get the current actions available on this session.
longgetActiveQueueItemId()
Get the id of the currently active item in the queue.
longgetBufferedPosition()
Get the current buffered position in ms.
ListgetCustomActions()
Get the list of custom actions.
CharSequencegetErrorMessage()
Get the user readable optional error message.
BundlegetExtras()
Get any custom extras that were set on this playback state.
longgetLastPositionUpdateTime()
Get the elapsed real time at which position was last updated.
floatgetPlaybackSpeed()
Get the current playback speed as a multiple of normal playback.
longgetPosition()
Get the playback position in ms at last position update time.
intgetState()
Get the current state of playback.
inttoKeyCode(@MediaKeyAction long action)
Translates a given action into a matched key code defined in KeyEvent .