NotificationConfig

data class NotificationConfig(val buttons: List<NotificationButton>)

Used to configure the player notification.

Parameters

buttons

Provide customized notification buttons. They will be shown by default. Note that buttons can still be shown and hidden at runtime by using the functions in NotificationManager, but they will have the default icon if not set explicitly here.

accentColor

The accent color of the notification.

smallIcon

The small icon of the notification which is also shown in the system status bar.

pendingIntent

The PendingIntent that would be called when tapping on the notification itself.

Constructors

Link copied to clipboard
constructor(buttons: List<NotificationButton>)

Properties

Link copied to clipboard