Text Input Dialog
Goal
Prompt for a single text input and validate it.
Actions used
NativeUIShowAlert(withenableTextInput = true)
Variables
enteredText(String)
Flow
State:
ShowInputPromptAction:
NativeUIShowAlertExample inputs:
enableTextInput:trueplaceholder:"Username"defaultText:"Player"keyboardType:KeyboardInputType.DefaultisSecured:falsebuttonLabels:["Submit"]cancelButtonLabel:"Cancel"
Outputs:
enteredTextEvents:
buttonClickedEventβValidateInputcancelClickedEventβCancelled
State:
ValidateInputIf valid β
ProcessInputIf invalid β show error and go back to
ShowInputPrompt
State:
ProcessInputUse
enteredText.
Notes
For passwords, set
isSecured = true.
Last updated
Was this helpful?