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.Type| Modifier and Type | Method and Description |
|---|---|
RoboAssets |
assets() |
RoboAudio |
audio() |
RoboGraphics |
graphics() |
void |
invokeAsync(Runnable action) |
Json |
json() |
RoboKeyboard |
keyboard() |
Mouse |
mouse() |
RoboNet |
net() |
void |
openURL(String url) |
RoboPointer |
pointer() |
float |
random() |
static RoboPlatform |
register(org.robovm.apple.uikit.UIWindow window,
RoboPlatform.Config config)
Registers the RoboVM platform for operation in
window. |
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() |
int |
tick() |
double |
time() |
RoboTouch |
touch() |
Platform.Type |
type() |
invokeLater, log, notifyFailure, notifySuccess, reportError, setErrorReporter, setLifecycleListenerpublic static RoboPlatform register(org.robovm.apple.uikit.UIWindow window, RoboPlatform.Config config)
window.
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 RoboViewController yourself and include it in
your app wherever you like.
public void setListener(RoboPlatform.OrientationListener listener)
public void invokeAsync(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(String url)
public void setPropagateEvents(boolean propagate)
public void run(Game game)
Copyright © 2015. All Rights Reserved.