public class Platform
extends java.lang.Object
| Constructor and Description |
|---|
Platform() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.Executor |
autoSelectExecutor()
Auto selects the Executor based on the underlying platform.
|
static ITransport |
autoSelectTransport(java.lang.String webSocketURL)
Automatically returns a WebSocket based transport for WAMP based on the
underlying platform.
|
static boolean |
isAndroid()
Checks if code is running on Android.
|
public static boolean isAndroid()
public static ITransport autoSelectTransport(java.lang.String webSocketURL) throws java.lang.RuntimeException
webSocketURL - websocket url to use for initializing of the transportjava.lang.RuntimeException - most probably if the path of transport we are trying
to initialize changed OR its constructor changed.public static java.util.concurrent.Executor autoSelectExecutor()