Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Last active March 19, 2023 03:24
Show Gist options
  • Save KatieBarnett/e83b7f80567a19fe455e0b9cd87dcb01 to your computer and use it in GitHub Desktop.
Save KatieBarnett/e83b7f80567a19fe455e0b9cd87dcb01 to your computer and use it in GitHub Desktop.
Wear OS input launch intent
// Create the intent to launch the remote input
val intent: Intent = RemoteInputIntentHelper.createActionRemoteInputIntent()
RemoteInputIntentHelper.putRemoteInputsExtra(intent, remoteInputs)
CompactButton(
onClick = {
// Use the launcher to launch the intent on click of a button
launcher.launch(intent)
},
) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment