CustomActionReceiver

CustomActionReceiver

interface CustomActionReceiver

Defines and handles custom actions.

Functions

NameSummary
createCustomActionsabstract fun createCustomActions(context: Context): Map<String, NotificationCompat.Action>
Gets the actions handled by this receiver.
getCustomActionsabstract fun getCustomActions(player: Player): List<String>
Gets the actions to be included in the notification given the current player state.
onCustomActionabstract fun onCustomAction(player: Player, action: String, intent: Intent)
Called when a custom action has been received.