PlaybackNotification

Manages the notification displayed with a MediaPlayback.

Types

Link copied to clipboard
open class Extras
Extras set on the PendingIntent in the default implementation of the createCurrentContentIntent.
Link copied to clipboard
An adapter to provide content assets of the media currently playing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Interface definition used to restore playback when re-creating an activity when the user clicks on the on-going notification.
Link copied to clipboard
Types of media to display an ongoing notification for.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun cancel()
Cancels the notification by setting the player to null.
Link copied to clipboard
abstract fun getPlayback(): MediaPlayback<out Any>
Link copied to clipboard
Get the supported stream types for showing this notification.
Link copied to clipboard
abstract fun isVisible(): Boolean
Check is the notification is showing.
Link copied to clipboard
Configure and customize the notification shown for playback.
Link copied to clipboard
abstract fun setPlayback(mediaPlayback: MediaPlayback<out Any>)
Link copied to clipboard
Set the stream types to show notifications for.
Link copied to clipboard
abstract fun show(): Boolean
Starts a notification immediately unless the player is in an idle state, in which case the notification is started as soon as the player transitions away from being idle.