Building Mobile Enterprise Applications : webMethods Mobile Designer Native User Interface Reference : Native User Interface (NativeUI) Objects : nUIAlertDialog
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 ignores 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.
Windows Phone
Windows Phone devices use the button labels as the determinant for the number of buttons allowed in the alert dialog. Software AG recommends limiting the number of buttons to five when the labels are short, averaging four letters. Windows Phone devices might truncate labels if screen space is not available.
Windows RT
Windows 8
Windows RT/Windows 8 support no more than three buttons and ignores additional buttons.
Example
This code sample displays an alert dialog with two buttons. Illustrations of how the example code is rendered on various platforms follows 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 Illustration
Android
Dialogs and the android.app.AlertDialog
iOS 7
UIAlertView
iOS 6
UIAlertView
Windows Phone
Popup
 
Windows RT
Windows 8
Windows.UI.Popups.MessageDialog
 
Other
Copyright © 2007-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback