BackgroundPlaybackNotification

Manages the notification displayed with a MediaPlayback.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val currentlyPlayingStreamType: <Error class: unknown class>?

Functions

Link copied to clipboard
open override fun cancel()

Cancels the notification by setting the player to null.

Link copied to clipboard
open fun getPlayback(): <Error class: unknown class><<Error class: unknown class>>?

Get the MediaPlayback associated with the notification

Link copied to clipboard
open fun getStreamTypes(): Array<<Error class: unknown class>>

Get the supported stream types for showing this notification.

Link copied to clipboard
open override fun isVisible(): Boolean

Check is the notification is showing.

Link copied to clipboard
open override fun setConfig(config: <Error class: unknown class>)

Configure and customize the notification shown for playback.

Link copied to clipboard
open fun setPlayback(playback: <Error class: unknown class><out <Error class: unknown class>>?)

Set a MediaPlayback to associate the notification

Link copied to clipboard
open fun setStreamTypes(vararg types: <Error class: unknown class>)

Set the stream types to show notifications for.

Link copied to clipboard
open override 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.