Class Browser
java.lang.Object
nl.colorize.multimedialib.renderer.teavm.Browser
Entry point to access the various "bridge" interfaces that can be used to
call JavaScript functions using TeaVM. This consists of both general browser
APIs and bindings to the parts of MultimediaLib that are implemented in
JavaScript.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BrowserBridgestatic PeerjsBridgestatic PixiBridgestatic StringgetQueryParameter(String name, String defaultValue) Returns the query parameter with the specified name, or the default value if no such query parameter exists.static ThreeBridgestatic booleanReturns true if the current platform can be considered a mobile device.
-
Constructor Details
-
Browser
public Browser()
-
-
Method Details
-
getBrowserBridge
-
getPixiBridge
-
getThreeBridge
-
getPeerJsBridge
-
isMobileDevice
public static boolean isMobileDevice()Returns true if the current platform can be considered a mobile device. Note this check does not depend on whether the device supports touch controls, since some desktop environments support both mouse and touch control.This method can be called from application launcher code.
-
getQueryParameter
Returns the query parameter with the specified name, or the default value if no such query parameter exists.This method can be called from application launcher code. This enables the use of query parameters to influence the launcher behavior.
-