ActionCallback

Interface

Android
interface ActionCallback

A callback executed in response to the user action, before the content is updated. The implementing class must have a public zero argument constructor, this is used to instantiate the class at runtime.

Functions

suspend fun onAction(context: Context, glanceId: GlanceId, parameters: ActionParameters)

Performs the work associated with this action. Called when the action is triggered.

Parameters

contextthe calling context
glanceIdthe GlanceId that triggered this action
parametersthe parameters associated with the action