Text Input Dialog
Last updated
Prompt for a single text input and validate it.
NativeUIShowAlert (with enableTextInput = true)
enteredText (String)
State: ShowInputPrompt
Action: NativeUIShowAlert
Example inputs:
enableTextInput: true
placeholder: "Username"
defaultText: "Player"
keyboardType: KeyboardInputType.Default
isSecured: false
buttonLabels: ["Submit"]
cancelButtonLabel: "Cancel"
Outputs: enteredText
Events:
buttonClickedEvent → ValidateInput
cancelClickedEvent → Cancelled
State: ValidateInput
If valid → ProcessInput
If invalid → show error and go back to ShowInputPrompt
State: ProcessInput
Use enteredText.
For passwords, set isSecured = true.
Last updated