package

androidx.media3.session

Interfaces

BitmapLoader
DefaultMediaNotificationProvider.NotificationIdProviderProvides notification IDs for posting media notifications for given media sessions.
IMediaControllerInterface from MediaSession to MediaController.
IMediaSessionInterface from MediaController to MediaSession.
IMediaSessionServiceInterface from MediaController to MediaSessionService.
MediaBrowser.ListenerA listener for events from MediaLibraryService.
MediaController.ListenerA listener for events and incoming commands from MediaSession.
MediaLibraryService.MediaLibrarySession.CallbackAn extended MediaSession.Callback for the MediaLibraryService.MediaLibrarySession.
MediaNotification.ActionFactoryCreates and pending intents for notifications.
MediaNotification.ProviderProvides media notifications to be posted as notifications that reflect the state of a MediaController and to send media commands to a MediaSession.
MediaNotification.Provider.CallbackReceives updates for a notification.
MediaSession.CallbackA callback to handle incoming commands from MediaController.
MediaSessionService.ListenerListener for MediaSessionService.
PlayerNotificationManager.MediaDescriptionAdapterAn adapter to provide content assets of the media currently playing.
PlayerNotificationManager.NotificationListenerA listener for changes to the notification.

Classes

CacheBitmapLoaderA BitmapLoader that caches the result of the last CacheBitmapLoader.decodeBitmap(byte[]) or CacheBitmapLoader.loadBitmap(Uri) request.
CommandButtonA button for a SessionCommand or that can be displayed by controllers.
CommandButton.BuilderA builder for CommandButton.
DefaultMediaDescriptionAdapterDefault implementation of PlayerNotificationManager.MediaDescriptionAdapter.
DefaultMediaNotificationProviderThe default MediaNotification.Provider.
DefaultMediaNotificationProvider.BuilderA builder for DefaultMediaNotificationProvider instances.
IMediaController._Parcel
IMediaController.DefaultDefault implementation for IMediaController.
IMediaController.StubLocal-side IPC implementation stub class.
IMediaSession._Parcel
IMediaSession.DefaultDefault implementation for IMediaSession.
IMediaSession.StubLocal-side IPC implementation stub class.
IMediaSessionService._Parcel
IMediaSessionService.DefaultDefault implementation for IMediaSessionService.
IMediaSessionService.StubLocal-side IPC implementation stub class.
LibraryResult<V>A result to be used with for asynchronous calls between MediaLibraryService.MediaLibrarySession and MediaBrowser.
MediaBrowserBrowses media content offered by a MediaLibraryService in addition to the MediaController functions.
MediaBrowser.BuilderA builder for MediaBrowser.
MediaButtonReceiverA media button receiver receives hardware media playback button intent, such as those sent by wired and wireless headsets.
MediaConstantsConstants that can be shared between media session and controller.
MediaControllerA controller that interacts with a MediaSession, a MediaSessionService hosting a MediaSession, or a MediaLibraryService hosting a MediaLibraryService.MediaLibrarySession.
MediaController.BuilderA builder for MediaController.
MediaLibraryServiceSuperclass to be extended by services hosting media library sessions.
MediaLibraryService.LibraryParamsParameters for the interaction between MediaBrowser and MediaLibraryService.MediaLibrarySession.
MediaLibraryService.LibraryParams.BuilderA builder for MediaLibraryService.LibraryParams.
MediaLibraryService.MediaLibrarySessionAn extended MediaSession for the MediaLibraryService.
MediaLibraryService.MediaLibrarySession.BuilderA builder for MediaLibraryService.MediaLibrarySession.
MediaNotificationA notification for media playbacks.
MediaSessionA session that allows a media app to expose its player functionality, information of the playlist and the media item currently being played to other processes including the Android framework and other apps.
MediaSession.BuilderA builder for MediaSession.
MediaSession.ConnectionResultA result for MediaSession.Callback to denote the set of available commands and the custom layout for a controller.
MediaSession.ConnectionResult.AcceptedResultBuilderA builder for MediaSession.ConnectionResult instances to accept a connection.
MediaSession.ControllerInfoInformation of a MediaController or a MediaBrowser.
MediaSession.MediaItemsWithStartPositionRepresentation of a list of media items and where to start playing.
MediaSessionServiceSuperclass to be extended by services hosting media sessions.
MediaStyleNotificationHelperClass containing media specfic styles that you can use with NotificationCompat.Builder.setStyle(NotificationCompat.Style).
MediaStyleNotificationHelper.DecoratedMediaCustomViewStyleNotification style for media custom views that are decorated by the system.
MediaStyleNotificationHelper.MediaStyleNotification style for media playback notifications.
PlayerNotificationManagerStarts, updates and cancels a media style notification for a MediaSession.
PlayerNotificationManager.BitmapCallbackReceives a Bitmap.
PlayerNotificationManager.BuilderA builder for PlayerNotificationManager instances.
SessionCommandA command that a MediaController can send to a MediaSession.
SessionCommandsA set of session commands.
SessionCommands.BuilderA builder for SessionCommands.
SessionErrorProvides information about a session error.
SessionResultA result to be used with for asynchronous calls between MediaSession and MediaController.
SessionTokenA token that represents an ongoing MediaSession or a service (MediaSessionService, MediaLibraryService, or androix.media.MediaBrowserServiceCompat).
SimpleBitmapLoader

Annotation Types

CommandButton.IconAn icon constant for a button.
LibraryResult.CodeResult codes.
PlayerNotificationManager.PriorityPriority of the notification (required for API 25 and lower).
PlayerNotificationManager.VisibilityVisibility of notification on the lock screen.
SessionCommand.CommandCodeCommand codes of session commands.
SessionError.CodeInfo and error result codes.
SessionResult.CodeResult codes.
SessionToken.TokenTypeTypes of SessionToken.