Confirmation Dialog
Goal
Show a native alert and branch based on which button the user pressed.
Actions used
NativeUIShowAlert
Variables
pressedButtonIndex(Int)pressedButtonLabel(String)
Flow
State:
ShowConfirmationAction:
NativeUIShowAlertExample inputs:
title:"Delete Item?"message:"This action cannot be undone."buttonLabels:["Delete"]cancelButtonLabel:"Cancel"
Events:
buttonClickedEventβConfirmedcancelClickedEventβCancelled
State:
ConfirmedPerform the action.
State:
CancelledDo nothing / go back.
Notes
buttonClickedEventis sent for any non-cancel button. UsepressedButtonIndex/pressedButtonLabelif you have multiple buttons.
Last updated
Was this helpful?