Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Created March 19, 2023 02:48
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 KatieBarnett/819d54d6e32bf0f0317e5e58bc7b2d67 to your computer and use it in GitHub Desktop.
Save KatieBarnett/819d54d6e32bf0f0317e5e58bc7b2d67 to your computer and use it in GitHub Desktop.
Wear OS input setup
// Default text to be displayed before text is entered
val defaultText = stringResource(R.string.edit_user_input)
// A variable to store the received text in
var userInput by remember { mutableStateOf(defaultText) }
// A key to identify the text we are receiving when coming back from the remote input
val inputTextKey = "input_text"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment