Show a native alert and branch based on which button the user pressed.
NativeUIShowAlert
pressedButtonIndex (Int)
pressedButtonIndex
pressedButtonLabel (String)
pressedButtonLabel
State: ShowConfirmation
ShowConfirmation
Action: NativeUIShowAlert
Example inputs:
title: "Delete Item?"
title
"Delete Item?"
message: "This action cannot be undone."
message
"This action cannot be undone."
buttonLabels: ["Delete"]
buttonLabels
["Delete"]
cancelButtonLabel: "Cancel"
cancelButtonLabel
"Cancel"
Events:
buttonClickedEvent β Confirmed
buttonClickedEvent
Confirmed
cancelClickedEvent β Cancelled
cancelClickedEvent
Cancelled
State: Confirmed
Perform the action.
State: Cancelled
Do nothing / go back.
buttonClickedEvent is sent for any non-cancel button. Use pressedButtonIndex / pressedButtonLabel if you have multiple buttons.
Last updated 1 month ago