public class RoboPlatform extends AbstractPlatform
| Modifier and Type | Class and Description |
|---|---|
static class |
RoboPlatform.Config
Used to configure the RoboVM platform.
|
static interface |
RoboPlatform.OrientationListener
Enables games to respond to device orientation changes.
|
Platform.TypeDEFAULT_REPORTER, log, runQueue| Modifier | Constructor and Description |
|---|---|
protected |
RoboPlatform(org.robovm.apple.uikit.UIApplication app,
org.robovm.apple.uikit.UIWindow window,
RoboPlatform.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Manually activates the PlayN platform.
|
RoboAssets |
assets() |
RoboAudio |
audio() |
org.robovm.apple.glkit.GLKView |
gameView()
Returns the main game view.
|
RoboGraphics |
graphics() |
void |
invokeAsync(java.lang.Runnable action) |
Json |
json() |
RoboKeyboard |
keyboard() |
Mouse |
mouse() |
RoboNet |
net() |
void |
openURL(java.lang.String url) |
RoboPointer |
pointer() |
float |
random() |
static RoboPlatform |
register(org.robovm.apple.uikit.UIApplication app)
Registers your application using the default configuration.
|
static RoboPlatform |
register(org.robovm.apple.uikit.UIApplication app,
RoboPlatform.Config config)
Registers your application using the supplied configuration.
|
static RoboPlatform |
register(org.robovm.apple.uikit.UIApplication app,
org.robovm.apple.uikit.UIWindow window,
RoboPlatform.Config config)
Registers your application using the supplied configuration and window.
|
org.robovm.apple.uikit.UIViewController |
rootViewController()
Returns the controller for the root view.
|
void |
run(Game game) |
void |
setListener(RoboPlatform.OrientationListener listener)
Configures a listener to be notified when the device rotates.
|
void |
setPropagateEvents(boolean propagate) |
RoboStorage |
storage() |
void |
terminate()
Manually terminates the PlayN platform.
|
int |
tick() |
double |
time() |
RoboTouch |
touch() |
Platform.Type |
type() |
org.robovm.apple.uikit.UIWindow |
window()
Returns the top-level UIWindow.
|
invokeLater, log, notifyFailure, notifySuccess, onExit, onPause, onResume, reportError, setErrorReporter, setLifecycleListenerprotected RoboPlatform(org.robovm.apple.uikit.UIApplication app,
org.robovm.apple.uikit.UIWindow window,
RoboPlatform.Config config)
public static RoboPlatform register(org.robovm.apple.uikit.UIApplication app)
public static RoboPlatform register(org.robovm.apple.uikit.UIApplication app, RoboPlatform.Config config)
public static RoboPlatform register(org.robovm.apple.uikit.UIApplication app, org.robovm.apple.uikit.UIWindow window, RoboPlatform.Config config)
RoboRootViewController
or replicate its functionality in your root view controller.public org.robovm.apple.uikit.UIWindow window()
public org.robovm.apple.uikit.UIViewController rootViewController()
public org.robovm.apple.glkit.GLKView gameView()
public void setListener(RoboPlatform.OrientationListener listener)
public void activate()
RoboPlatform.Config.embedded must also be true in that case.public void terminate()
RoboPlatform.Config.embedded must also be true in that case.public void invokeAsync(java.lang.Runnable action)
invokeAsync in class AbstractPlatformpublic Platform.Type type()
public RoboAssets assets()
public RoboAudio audio()
public RoboGraphics graphics()
public Json json()
public RoboKeyboard keyboard()
public RoboNet net()
public Mouse mouse()
public RoboTouch touch()
public RoboPointer pointer()
public float random()
public RoboStorage storage()
public double time()
public int tick()
public void openURL(java.lang.String url)
public void setPropagateEvents(boolean propagate)
public void run(Game game)
Copyright © 2014. All Rights Reserved.