Register now for Android Dev Summit 2019!

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
MediaBrowser.BrowserCallback Callback to listen events from MediaLibraryService
MediaBrowser.Builder Builder for MediaBrowser
MediaController Allows an app to interact with an active MediaSession or a MediaSessionService which would provide MediaSession
MediaController.Builder Builder for MediaController
MediaController.ControllerCallback Interface for listening to change in activeness of the MediaSession
MediaController.PlaybackInfo Holds information about the the way volume is handled for this session. 
MediaLibraryService Base class for media library services, which is the service containing MediaLibraryService.MediaLibrarySession
MediaLibraryService.LibraryParams Contains information that the library service needs to send to the client. 
MediaLibraryService.LibraryParams.Builder Builds MediaLibraryService.LibraryParams
MediaLibraryService.MediaLibrarySession Session for the MediaLibraryService
MediaLibraryService.MediaLibrarySession.Builder Builder for MediaLibraryService.MediaLibrarySession
MediaLibraryService.MediaLibrarySession.MediaLibrarySessionCallback Callback for the MediaLibraryService.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. 
MediaSession.Builder Builder for MediaSession
MediaSession.CommandButton Button for a SessionCommand that will be shown by the controller. 
MediaSession.CommandButton.Builder Builder for MediaSession.CommandButton
MediaSession.ControllerInfo Information of a controller. 
MediaSession.SessionCallback Callback to be called for all incoming commands from MediaControllers. 
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
MediaSessionService.MediaNotification Returned by MediaSessionService.onUpdateNotification(MediaSession) for making session service foreground service to keep playback running in the background. 
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. 
RemoteSessionPlayer.Callback A callback class to receive notifications for events on the remote session player. 
SessionCommand Define a command that a MediaController can send to a MediaSession
SessionCommandGroup A set of SessionCommand which represents a command group. 
SessionCommandGroup.Builder Builds a SessionCommandGroup object. 
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".