@Override public void getTextInput(TextInputListener listener, String title, String text, String hint) { buildUIAlertView(listener, title, text, hint).show(); }
@Override public void getTextInput(TextInputListener listener, String title, String text, String hint) { buildUIAlertView(listener, title, text, hint).show(); }
@Override public GDXButtonDialog show() { if (alertView == null) { throw new RuntimeException(GDXButtonDialog.class.getSimpleName() + " has not been build. Use build() before show()."); } Gdx.app.debug(GDXDialogsVars.LOG_TAG, IOSGDXButtonDialog.class.getSimpleName() + " now shown."); alertView.show(); return this; }
@Override public GDXTextPrompt show() { if (alertView == null) { throw new RuntimeException(GDXTextPrompt.class.getSimpleName() + " has not been build. Use build() before show()."); } Gdx.app.debug(GDXDialogsVars.LOG_TAG, IOSGDXTextPrompt.class.getSimpleName() + " now shown."); alertView.show(); return this; }
@Override public GDXProgressDialog show() { if (alertView == null) { throw new RuntimeException(GDXProgressDialog.class.getSimpleName() + " has not been build. Use build() before show()."); } Gdx.app.debug(GDXDialogsVars.LOG_TAG, IOSGDXProgressDialog.class.getSimpleName() + " now shown."); alertView.show(); return this; }
@Override public void getTextInput(TextInputListener listener, String title, String text, String hint) { buildUIAlertView(listener, title, text, hint).show(); }
@Override public void show() { Platform.getPlatform().runOnUIThread(() -> { if (alertView != null) { alertView.show(); } else { alertController.show(); } }); }
@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; }
view.show();
view.show();