CustomActionReceiver

interface CustomActionReceiver

Defines and handles custom actions.

Functions

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