nUIAlertDialog
com.softwareag.mobile.runtime.nui.nUIAlertDialog
Use to display a small pop-up that contains information. Use the pop-up to:
Present information to the user.
Interact with the user by displaying a simple question, for example, a question requiring a “yes” or “no” answer.
Usage Notes
Include at least one button in a
nUIAlertDialog object.
The following are platform-specific considerations:
Android | Android devices support no more than three buttons and ignore additional buttons. |
iOS | When using more than two buttons, iOS devices stack the buttons vertically in an alert dialog. Software AG recommends limiting the number of buttons to four or five. |
Example
This code sample displays an alert dialog with two buttons. Details on how the example code is rendered on various platforms follow the code sample.
nUIAlertDialog alertDialog = new nUIAlertDialog
(
NUIID_MY_ALERT_DIALOG,
"Lorem Ipsum",
"Dolor sit amet?",
new String[]{"Lorem", "Ipsum"},
new int[]{NUIID_BUTTON_LOREM, NUIID_BUTTON_IPSUM}
);
Platform | Platform-Specific Class and Visual Reference |
Android | Dialogs and the android.app.AlertDialog |
iOS | UIAlertView |