androidx.media3.session


Interfaces

BitmapLoader

This interface is deprecated.

Use androidx.media3.common.util.BitmapLoader instead.

DefaultMediaNotificationProvider.NotificationIdProvider

Provides notification IDs for posting media notifications for given media sessions.

IMediaController

Interface from MediaSession to MediaController.

IMediaSession

Interface from MediaController to MediaSession.

IMediaSessionService

Interface from MediaController to MediaSessionService.

MediaBrowser.Listener

A listener for events from MediaLibraryService.

MediaController.Listener

A listener for events and incoming commands from MediaSession.

MediaLibraryService.MediaLibrarySession.Callback

An extended MediaSession.Callback for the MediaLibrarySession.

MediaNotification.ActionFactory

Creates actions and pending intents for notifications.

MediaNotification.Provider

Provides media notifications to be posted as notifications that reflect the state of a MediaController and to send media commands to a .

MediaNotification.Provider.Callback

Receives updates for a notification.

MediaSession.Callback

A callback to handle incoming commands from MediaController.

MediaSessionService.Listener

Listener for MediaSessionService.

Classes

BuildConfig
CacheBitmapLoader

A BitmapLoader that caches the result of the last decodeBitmap or loadBitmap request.

CommandButton

A button for a SessionCommand or Player.Command that can be displayed by controllers.

CommandButton.Builder

A builder for CommandButton.

DefaultMediaNotificationProvider

The default MediaNotification.Provider.

DefaultMediaNotificationProvider.Builder

A builder for DefaultMediaNotificationProvider instances.

IMediaController.Default

Default implementation for IMediaController.

IMediaController.Stub

Local-side IPC implementation stub class.

IMediaSession.Default

Default implementation for IMediaSession.

IMediaSession.Stub

Local-side IPC implementation stub class.

IMediaSessionService.Default

Default implementation for IMediaSessionService.

IMediaSessionService.Stub

Local-side IPC implementation stub class.

LibraryResult

A result to be used with ListenableFuture for asynchronous calls between and MediaBrowser.

MediaBrowser

Browses media content offered by a MediaLibraryService in addition to the functions.

MediaBrowser.Builder

A builder for MediaBrowser.

MediaButtonReceiver

A media button receiver receives hardware media playback button intent, such as those sent by wired and wireless headsets.

MediaConstants

Constants that can be shared between media session and controller.

MediaController

A controller that interacts with a MediaSession, a MediaSessionService hosting a MediaSession, or a MediaLibraryService hosting a .

MediaController.Builder

A builder for MediaController.

MediaLibraryService

Superclass to be extended by services hosting media library sessions.

MediaLibraryService.LibraryParams

Parameters for the interaction between MediaBrowser and MediaLibrarySession.

MediaLibraryService.LibraryParams.Builder

A builder for LibraryParams.

MediaLibraryService.MediaLibrarySession

An extended MediaSession for the MediaLibraryService.

MediaLibraryService.MediaLibrarySession.Builder

A builder for MediaLibrarySession.

MediaNotification

A notification for media playbacks.

MediaSession

A 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.Builder

A builder for MediaSession.

MediaSession.ConnectionResult

A result for onConnect to denote the set of available commands and the custom layout for a controller.

MediaSession.ConnectionResult.AcceptedResultBuilder

A builder for ConnectionResult instances to accept a connection.

MediaSession.ControllerInfo

Information of a MediaController or a MediaBrowser.

MediaSession.MediaItemsWithStartPosition

Representation of a list of media items and where to start playing.

MediaSessionService

Superclass to be extended by services hosting media sessions.

MediaStyleNotificationHelper

Class containing media specfic styles that you can use with setStyle.

MediaStyleNotificationHelper.DecoratedMediaCustomViewStyle

Notification style for media custom views that are decorated by the system.

MediaStyleNotificationHelper.MediaStyle

Notification style for media playback notifications.

SessionCommand

A command that a MediaController can send to a MediaSession.

SessionCommands

A set of session commands.

SessionCommands.Builder

A builder for SessionCommands.

SessionResult

A result to be used with ListenableFuture for asynchronous calls between and MediaController.

SessionToken

A token that represents an ongoing MediaSession or a service (, MediaLibraryService, or MediaBrowserServiceCompat).

SimpleBitmapLoader

This class is deprecated.

Use androidx.media3.datasource.DataSourceBitmapLoader instead.

Annotations

LibraryResult.Code

Result codes.

SessionCommand.CommandCode

Command codes of session commands.

SessionResult.Code

Result codes.

SessionToken.TokenType

Types of SessionToken.