package

androidx.media2.session

Interfaces

MediaController.ControllerCallbackRunnable
SessionToken.OnSessionTokenCreatedListener

Classes

HeartRatingA class for rating with a single degree of rating, "heart" vs "no heart".
LibraryResultResult class to be used with for asynchronous calls between MediaLibraryService.MediaLibrarySession and MediaBrowser.
MediaBrowserBrowses media content offered by a MediaLibraryService.
MediaBrowser.BrowserCallbackCallback to listen events from MediaLibraryService.
MediaBrowser.BuilderBuilder for MediaBrowser.
MediaControllerAllows an app to interact with an active MediaSession or a MediaSessionService which would provide MediaSession.
MediaController.BuilderBuilder for MediaController.
MediaController.ControllerCallbackInterface for listening to change in activeness of the MediaSession.
MediaController.PlaybackInfoHolds information about the the way volume is handled for this session.
MediaLibraryServiceBase class for media library services, which is the service containing MediaLibraryService.MediaLibrarySession.
MediaLibraryService.LibraryParamsContains information that the library service needs to send to the client.
MediaLibraryService.LibraryParams.BuilderBuilds MediaLibraryService.LibraryParams.
MediaLibraryService.MediaLibrarySessionSession for the MediaLibraryService.
MediaLibraryService.MediaLibrarySession.BuilderBuilder for MediaLibraryService.MediaLibrarySession.
MediaLibraryService.MediaLibrarySession.MediaLibrarySessionCallbackCallback for the MediaLibraryService.MediaLibrarySession.
MediaNotificationHandlerProvides default media notification for MediaSessionService, and set the service as foreground/background according to the player state.
MediaSessionAllows 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.BuilderBuilder for MediaSession.
MediaSession.CommandButtonButton for a SessionCommand that will be shown by the controller.
MediaSession.CommandButton.BuilderBuilder for MediaSession.CommandButton.
MediaSession.ControllerInfoInformation of a controller.
MediaSession.SessionCallbackCallback to be called for all incoming commands from MediaControllers.
MediaSessionManagerProvides support for interacting with media sessions that applications have published in order to express their ongoing media playback state.
MediaSessionServiceBase class for media session services, which is the service containing MediaSession.
MediaSessionService.MediaNotificationReturned by MediaSessionService.onUpdateNotification(MediaSession) for making session service foreground service to keep playback running in the background.
MediaUtils
PercentageRatingA class for rating expressed as a percentage.
RemoteSessionPlayerBase interface for all remote media players that want media session and playback happens on the remote device through MediaRouter.
RemoteSessionPlayer.CallbackA callback class to receive notifications for events on the remote session player.
SessionCommandDefine a command that a MediaController can send to a MediaSession.
SessionCommandGroupA set of SessionCommand which represents a command group.
SessionCommandGroup.BuilderBuilds a SessionCommandGroup object.
SessionResultResult class to be used with for asynchronous calls between MediaSession and MediaController.
SessionTokenRepresents an ongoing MediaSession or a MediaSessionService.
StarRatingA class for rating expressed as the number of stars.
ThumbRatingA class for rating with a single degree of rating, "thumb up" vs "thumb down".

Annotation Types

LibraryResult.ResultCode
MediaController.VolumeDirection
MediaController.VolumeFlags
RemoteSessionPlayer.VolumeControlType
SessionCommand.CommandCode
SessionCommand.CommandVersion
SessionResult.ResultCode
SessionToken.TokenType