PlayerNotificationManager
constructor(context: Context, channelId: String, notificationId: Int, @Nullable mediaDescriptionAdapter: MediaDescriptionAdapter)
Creates a notification manager using the specified notification channelId
. The caller is responsible for creating the notification channel.
Parameters
context
The Context.
channelId
The id of the notification channel.
notificationId
The id of the notification.
mediaDescriptionAdapter
constructor(context: Context, channelId: String, notificationId: Int, @Nullable mediaDescriptionAdapter: MediaDescriptionAdapter, @Nullable customActionReceiver: CustomActionReceiver)
Creates a notification manager using the specified notification channelId
and . The caller is responsible for creating the notification channel.
Parameters
context
The Context.
channelId
The id of the notification channel.
notificationId
The id of the notification.
mediaDescriptionAdapter
customActionReceiver
The CustomActionReceiver.