this.uiWindow.setRootViewController(this.graphics.viewController); this.uiWindow.makeKeyAndVisible(); Gdx.app.debug("IOSApplication", "created");
this.uiWindow.setRootViewController(this.graphics.viewController); this.uiWindow.makeKeyAndVisible(); Gdx.app.debug("IOSApplication", "created");
/** * Creates a RoboVM platform for operation in {@code window}. * * <p>This basically just sets the root view controller of the supplied window and that view * controller manages everything else. If you wish to embed a PlayN game in a larger iOS app, or * to customize PlayN more deeply, create a {@link RoboViewController} yourself and include it in * your app wherever you like. */ public static RoboPlatform create (UIWindow window, Config config) { RoboViewController ctrl = new RoboViewController(window.getBounds(), config); window.setRootViewController(ctrl); return ctrl.plat; }
/** * Registers the RoboVM platform for operation in {@code window}. * * <p>This basically just sets the root view controller of the supplied window and that view * controller manages everything else. If you wish to embed a PlayN game in a larger iOS app, or * to customize PlayN more deeply, create a {@link RoboViewController} yourself and include it in * your app wherever you like. */ public static RoboPlatform register (UIWindow window, Config config) { RoboViewController ctrl = new RoboViewController(window.getBounds(), config); window.setRootViewController(ctrl); return ctrl.platform(); }
public WindowAlertController(String title, String message, UIAlertControllerStyle preferredStyle) { super(title, message, preferredStyle); alertWindow = new UIWindow(UIScreen.getMainScreen().getBounds()); alertWindow.setRootViewController(new UIViewController()); alertWindow.setWindowLevel(UIWindowLevel.Alert + 1); }
IOSProgressDialog(ProgressDialog.Builder builder) { super(UIScreen.getMainScreen().getBounds()); this.style = builder.style; setupLabels(builder); setupIndicators(); alertWindow = new UIWindow(UIScreen.getMainScreen().getBounds()); alertWindow.setRootViewController(new UIViewController()); alertWindow.setWindowLevel(UIWindowLevel.Alert + 1); setContentMode(UIViewContentMode.Center); setAutoresizingMask( UIViewAutoresizing.with(UIViewAutoresizing.FlexibleTopMargin, UIViewAutoresizing.FlexibleBottomMargin, UIViewAutoresizing.FlexibleLeftMargin, UIViewAutoresizing.FlexibleRightMargin)); // Transparent background setOpaque(false); setBackgroundColor(UIColor.clear()); setAlpha(0); }
this.uiWindow.setRootViewController(this.graphics.viewController); this.uiWindow.makeKeyAndVisible(); Gdx.app.debug("IOSApplication", "created");