From wiki.ginstr.com
Revision as of 15:00, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

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
optional

if 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 - target
gn:act_usedAction - targetEvent
true - is cancelable
[gn:act_showSingleChoiceDialog]|[@string/screen2_dialogDifferentNfcTagTitle,@string/screen2_dialogDifferentNfcTagMessage,@string/screen2_dialogDifferentNfcTagOk,@+id/targetWidgetId,gn:act_usedAction,true]