java.lang.Object
nl.colorize.multimedialib.renderer.teavm.Browser

public class Browser extends Object
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 Details

    • Browser

      public Browser()
  • Method Details

    • getBrowserBridge

      public static BrowserBridge getBrowserBridge()
    • getPixiBridge

      public static PixiBridge getPixiBridge()
    • getThreeBridge

      public static ThreeBridge getThreeBridge()
    • getPeerJsBridge

      public static PeerjsBridge 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

      public static String getQueryParameter(String name, String defaultValue)
      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.