Class Browser
java.lang.Object
nl.colorize.multimedialib.renderer.teavm.Browser
Contains the API for calling JavaScript functions using TeaVM. This consists
of general browser APIs and bindings to the parts of MultimediaLib that are
implemented in JavaScript. This class therefore acts as the bridge between
the TeaVM renderer implementation in Java code, and the "native" browser
code implemented in JavaScript.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.teavm.jso.browser.Storage
static String
static float
static float
static PeerjsBridge
static PixiBridge
static int
static int
static ThreeBridge
static String
static boolean
static void
static void
preloadFontFace
(String family, String url, SuccessCallback callback) static void
static void
registerErrorHandler
(ErrorCallback callback) static void
writeClipboard
(String text)
-
Constructor Details
-
Browser
public Browser()
-
-
Method Details
-
log
-
getUserAgent
-
getPageWidth
public static float getPageWidth() -
getPageHeight
public static float getPageHeight() -
getScreenWidth
public static int getScreenWidth() -
getScreenHeight
public static int getScreenHeight() -
isTouchSupported
public static boolean isTouchSupported() -
prepareAnimationLoop
public static void prepareAnimationLoop() -
accessLocalStorage
public static org.teavm.jso.browser.Storage accessLocalStorage() -
registerErrorHandler
-
preloadFontFace
-
writeClipboard
-
getMeta
-
getPixiBridge
-
getThreeBridge
-
getPeerJsBridge
-