-
-
Save KatieBarnett/8fa0f28bd3d515c4487ad4900b7cfe5d to your computer and use it in GitHub Desktop.
Wear OS input multi request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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