androidx.media2.session

Classes

HeartRating

A class for rating with a single degree of rating, "heart" vs "no heart".

LibraryResult

Result class to be used with ListenableFuture for asynchronous calls between MediaLibraryService.MediaLibrarySession and MediaBrowser.

MediaBrowser

Browses media content offered by a MediaLibraryService.

MediaController

Allows an app to interact with an active MediaSession or a MediaSessionService which would provide MediaSession.

MediaLibraryService

Base class for media library services, which is the service containing MediaLibrarySession.

MediaSession

Allows a media app to expose its transport controls and playback information in a process to other processes including the Android framework and other apps.

MediaSessionManager

Provides support for interacting with media sessions that applications have published in order to express their ongoing media playback state.

MediaSessionService

Base class for media session services, which is the service containing MediaSession.

PercentageRating

A class for rating expressed as a percentage.

RemoteSessionPlayer

Base interface for all remote media players that want media session and playback happens on the remote device through MediaRouter.

SessionCommand

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

SessionCommandGroup

A set of SessionCommand which represents a command group.

SessionResult

Result class to be used with ListenableFuture for asynchronous calls between MediaSession and MediaController.

SessionToken

Represents an ongoing MediaSession or a MediaSessionService.

StarRating

A class for rating expressed as the number of stars.

ThumbRating

A class for rating with a single degree of rating, "thumb up" vs "thumb down".