Builder

class Builder(context: Context, @IntRange(from = 1) notificationId: Int, channelId: String) : PlayerNotificationManager.Builder

Preconfigured PlayerNotificationManager for Pillarbox.

Parameters

context
notificationId

The id of the notification to be posted. Must be greater than 0.

channelId

The id of the notification channel of an existing notification channel or of the channel that should be automatically created. In the latter case, setChannelNameResourceId(int) needs to be called as well.

Constructors

Link copied to clipboard
constructor(context: Context, @IntRange(from = 1) notificationId: Int, channelId: String)

Functions

Link copied to clipboard
open override fun build(): PlayerNotificationManager
Link copied to clipboard
Link copied to clipboard

Set media session to link with the PlayerNotification.