Google 致力于为黑人社区推动种族平等。查看具体举措

SessionCommand

class SessionCommand : VersionedParcelable
kotlin.Any
   ↳ androidx.media2.session.SessionCommand

Defines a command that a MediaController can send to a MediaSession.

If getCommandCode() isn't COMMAND_CODE_CUSTOM), it's predefined command. If getCommandCode() is COMMAND_CODE_CUSTOM), it's custom command and getCustomAction() shouldn't be null.

Summary

Constants
static Int

Command code for the custom command which can be defined by string action in the SessionCommand.

static Int

Command code for MediaBrowser#getChildren(String, int, int, LibraryParams).

static Int

Command code for MediaBrowser#getItem(String).

static Int

Command code for MediaBrowser#getLibraryRoot(LibraryParams).

static Int

Command code for MediaBrowser#getSearchResult(String, int, int, LibraryParams).

static Int

Command code for MediaBrowser#search(String, LibraryParams).

static Int

Command code for MediaBrowser#subscribe(String, LibraryParams).

static Int

Command code for MediaBrowser#unsubscribe(String).

static Int

Command code for MediaController#addPlaylistItem(int, String).

static Int

Command code for MediaController#deselectTrack(SessionPlayer.TrackInfo).

static Int

Command code for MediaController#getCurrentMediaItem().

static Int

Command code for MediaController#getPlaylist().

static Int

Command code for MediaController#getPlaylistMetadata().

static Int

Command code for MediaController#replacePlaylistItem(int, String).

static Int

Command code for MediaController#pause().

static Int

Command code for MediaController#play().

static Int

Command code for MediaController#prepare().

static Int

Command code for MediaController#removePlaylistItem(int).

static Int

Command code for MediaController#replacePlaylistItem(int, String).

static Int

Command code for MediaController#seekTo(long).

static Int

Command code for MediaController#selectTrack(SessionPlayer.TrackInfo).

static Int

Command code for MediaController#setMediaItem(String).

static Int

Command code for MediaController#setPlaylist(List, MediaMetadata).

static Int

Command code for MediaController#setRepeatMode(int).

static Int

Command code for MediaController#setShuffleMode(int).

static Int

Command code for MediaController#setPlaybackSpeed(float)}.

static Int

Command code for MediaController#setSurface(Surface).

static Int

Command code for MediaController#skipToNextPlaylistItem().

static Int

Command code for MediaController#skipToPlaylistItem(int).

static Int

Command code for MediaController#skipToPreviousPlaylistItem().

static Int

Command code for MediaController#updatePlaylistMetadata(MediaMetadata).