ApiVideoPlayerNotificationController

class ApiVideoPlayerNotificationController constructor(context: Context, playerNotificationManager: PlayerNotificationManager, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG))

The api.video player notification controller class.

The ApiVideoPlayerController uses the ApiVideoPlayerNotificationController to display a notification when the player is launched.

Parameters

context

the application context

playerNotificationManager
mediaSession

Constructors

Link copied to clipboard
constructor(context: Context, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG), notificationId: Int = DEFAULT_NOTIFICATION_ID, channelId: String = DEFAULT_NOTIFICATION_CHANNEL_ID, @StringRes channelNameResourceId: Int = R.string.default_channel_name, @StringRes channelDescriptionResourceId: Int = 0, notificationStyle: NotificationStyle = NotificationStyle())
constructor(context: Context, playerNotificationManager: PlayerNotificationManager, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the notification is active.

Functions

Link copied to clipboard
Link copied to clipboard