Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Created March 19, 2023 03:54
Show Gist options
  • Save KatieBarnett/8fa0f28bd3d515c4487ad4900b7cfe5d to your computer and use it in GitHub Desktop.
Save KatieBarnett/8fa0f28bd3d515c4487ad4900b7cfe5d to your computer and use it in GitHub Desktop.
Wear OS input multi request
val remoteInputs: List<RemoteInput> = listOf(
RemoteInput.Builder(inputTextKey1)
.setLabel(stringResource(R.string.edit_user_input_1))
.wearableExtender {
setEmojisAllowed(true)
setInputActionType(EditorInfo.IME_ACTION_NEXT)
}.build(),
RemoteInput.Builder(inputTextKey2)
.setLabel(stringResource(R.string.edit_user_input_2))
.wearableExtender {
setEmojisAllowed(true)
setInputActionType(EditorInfo.IME_ACTION_NEXT)
}.build(),
RemoteInput.Builder(inputTextKey3)
.setLabel(stringResource(R.string.edit_user_input_2))
.wearableExtender {
setEmojisAllowed(true)
setInputActionType(EditorInfo.IME_ACTION_DONE)
}.build(),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment