gn:act_showSingleChoiceDialog
- Description
- Action used to display a single choice dialog.
- Action returns
- void
Action signatures
Show cancelable single choice dialog
[gn:act_showSingleChoiceDialog]|[title, message, okButtonText, target, targetEvent, cancelable]
Parameter Description title
source from where the dialog title will be used message
source from where the dialog message will be used okButtonText
source from where the dialog ok button text will be used target
name of target where targetEvent will be fired after user clicks on the OK button targetEvent
name of event on target which will be fired after user clicks on the OK button cancelable
optionalif set to
false
, dialog will not be cancelable by pressing anywhere on screen, only by pressing OK button
Example
@string/screen2_dialogDifferentNfcTagTitle
- title@string/screen2_dialogDifferentNfcTagMessage
- message@string/screen2_dialogDifferentNfcTagOk
- okButtonText@+id/targetWidgetId
- targetgn:act_usedAction
- targetEventtrue
- is cancelable
- ⤷
[gn:act_showSingleChoiceDialog]|[@string/screen2_dialogDifferentNfcTagTitle, @string/screen2_dialogDifferentNfcTagMessage, @string/screen2_dialogDifferentNfcTagOk, @+id/targetWidgetId, gn:act_usedAction, true]
- ⤷