Builder
class Builder(context: Context, @IntRange(from = 1) notificationId: Int, channelId: String) : PlayerNotificationManager.Builder(source)
A builder for creating a preconfigured PlayerNotificationManager tailored for Pillarbox.
Parameters
context
The Context.
notificationId
The id of the notification to be posted. Must be greater than 0.
channelId
The id of the notification channel. This can be an existing channel or a new one to be created. If creating a new channel, ensure to call setChannelNameResourceId as well.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Links the player notification to a given MediaSession.
Inherited functions
Link copied to clipboard
open fun setChannelDescriptionResourceId(channelDescriptionResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setCustomActionReceiver(customActionReceiver: PlayerNotificationManager.CustomActionReceiver): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setFastForwardActionIconResourceId(fastForwardActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
Link copied to clipboard
open fun setMediaDescriptionAdapter(mediaDescriptionAdapter: PlayerNotificationManager.MediaDescriptionAdapter): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setNextActionIconResourceId(nextActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setNotificationListener(notificationListener: PlayerNotificationManager.NotificationListener): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setPauseActionIconResourceId(pauseActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setPlayActionIconResourceId(playActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setPreviousActionIconResourceId(previousActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
open fun setRewindActionIconResourceId(rewindActionIconResourceId: Int): PlayerNotificationManager.Builder
Link copied to clipboard
Link copied to clipboard
open fun setStopActionIconResourceId(stopActionIconResourceId: Int): PlayerNotificationManager.Builder