Skip to content

Instantly share code, notes, and snippets.

@igorescodro
Created January 5, 2022 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorescodro/d7a1fd1b04ca189f823049b335dac73c to your computer and use it in GitHub Desktop.
Save igorescodro/d7a1fd1b04ca189f823049b335dac73c to your computer and use it in GitHub Desktop.
Button(
text = "Update",
modifier = GlanceModifier.clickable(actionRunCallback<UpdateAction>())
)
class UpdateAction : ActionCallback {
override suspend fun onRun(context: Context, glanceId: GlanceId, parameters: ActionParameters) {
// Update!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment