Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save husaynhakeem/1045308c54716ca6e8df17c26cdf735b to your computer and use it in GitHub Desktop.
Save husaynhakeem/1045308c54716ca6e8df17c26cdf735b to your computer and use it in GitHub Desktop.
class ActionWidget : GlanceAppWidget() {
@Composable
override fun Content() {
Button(
text = "Start an activity",
onClick = actionStartActivity<DummyActivity>(
parameters = actionParametersOf(
actionWidgetKey to "activity"
)
)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment