final UIAlertView uiAlertView = new UIAlertView(); uiAlertView.setTitle(title); uiAlertView.addButton("Cancel");
final UIAlertView uiAlertView = new UIAlertView(); uiAlertView.setTitle(title); uiAlertView.addButton("Cancel");
var alertView = new UIAlertView("Crash Report", errorText, null, "Close", "Clear") { UserInteractionEnabled = true }; alertView.Clicked += (sender, args) =>
@Override public GDXProgressDialog build() { if (alertView == null) { alertView = new UIAlertView(); alertView.setTitle(title); alertView.setMessage(message); // CGSize screenSize = // UIScreen.getMainScreen().getBounds().getSize(); // indicator = new // UIActivityIndicatorView(UIActivityIndicatorViewStyle.White); // indicator.setFrame(new CGRect(0.0, 0.0, 40.0, 40.0)); // // indicator.setCenter(new CGPoint(screenSize.getWidth() / 2f - 20f, // screenSize.getWidth() / 2f - 50)); // indicator.startAnimating(); // alertView.addSubview(indicator); // indicator.release(); } return this; }
alertView = new UIAlertView(title, message, delegate, firstButton, otherButtons);
otherButtons[0] = confirmLabel; alertView = new UIAlertView(title, message, delegate, cancelLabel, otherButtons);
@Override public RFuture<Boolean> sysDialog(String title, String text, String ok, String cancel) { final RPromise<Boolean> result = plat.exec().deferredPromise(); UIAlertView view = new UIAlertView(); view.setTitle(title); view.setMessage(text); if (cancel != null) view.addButton(cancel); view.addButton(ok); view.setAlertViewStyle(UIAlertViewStyle.Default); view.setDelegate(new UIAlertViewDelegateAdapter() { public void clicked(UIAlertView view, long buttonIndex) { result.succeed(buttonIndex == 1); } }); view.show(); return result; }
final UIAlertView uiAlertView = new UIAlertView(); uiAlertView.setTitle(title); uiAlertView.addButton("Cancel");
IOSAlertDialog(AlertDialog.Builder builder) { if (Foundation.getMajorSystemVersion() < 8) { alertView = new UIAlertView(); alertView.setTitle(builder.title); alertView.setMessage(builder.message); buttons = new LongMap<>(builder.buttons.size()); for (DialogButton button : builder.buttons) { long i = alertView.addButton(button.getTitle()); if (button.getStyle() == DialogButtonStyle.Cancel) { alertView.setCancelButtonIndex(i); } buttons.put(i, button); } alertView.setDelegate(new UIAlertViewDelegateAdapter() { @Override public void clicked(UIAlertView alertView, long buttonIndex) { DialogButton button = buttons.get(buttonIndex); if (button != null) { button.getClickListener().onClick(IOSAlertDialog.this, button); } } }); } else { alertController = new WindowAlertController(builder.title, builder.message, UIAlertControllerStyle.Alert); for (DialogButton button : builder.buttons) { alertController.addAction(new UIAlertAction(button.getTitle(), getActionStyleForButtonStyle(button.getStyle()), getActionCallbackForButton(button))); } } }
@Override public void getText(TextType textType, String label, String initVal, final Callback<String> callback) { UIAlertView view = new UIAlertView(); if (label != null) view.setTitle(label);
final RPromise<String> result = plat.exec().deferredPromise(); UIAlertView view = new UIAlertView(); if (label != null) view.setTitle(label);