ActionCallback
Artifact: androidx.glance:glance-wear-tiles
Added in 1.0.0-alpha07
Deprecated in 1.0.0-alpha07
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.
Summary
Public functions |
|
|---|---|
suspend Unit |
This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Public functions
onAction
Added in 1.0.0-alpha07
Deprecated in 1.0.0-alpha07
suspend funonAction(context: Context, glanceId: GlanceId): Unit
Performs the work associated with this action. Called when the action is triggered.