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