PlaybackNotification
interface PlaybackNotification
Manages the notification displayed with a MediaPlayback.
Types
Link copied to clipboard
Extras set on the PendingIntent in the default implementation of the createCurrentContentIntent.
Link copied to clipboard
interface MediaDescriptionAdapter
An adapter to provide content assets of the media currently playing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface OnRestorePlaybackHandler
Interface definition used to restore playback when re-creating an activity when the user clicks on the on-going notification.
Link copied to clipboard
enum StreamType
Types of media to display an ongoing notification for.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the supported stream types for showing this notification.
Link copied to clipboard
abstract fun handleCustomCommand(mediaSession: MediaSession, controllerInfo: ControllerInfo, customCommand: SessionCommand, args: Bundle): Int
Link copied to clipboard
Configure and customize the notification shown for playback.
Link copied to clipboard
abstract fun setMediaSessionNotificationActions(mediaSession: MediaSession, controller: ControllerInfo): ConnectionResult
Link copied to clipboard
Link copied to clipboard
Set the stream types to show notifications for.