Class EquoApp

java.lang.Object
com.equo.application.client.EquoApp

public class EquoApp extends Object
EquoApp facilitates the easy creation of Chromium-based applications and their customization.
  • Field Details

  • Method Details

    • create

      public static EquoApp create(String appName)
      Creates and returns a new instance of the EquoApp class with the specified appName.
      Parameters:
      appName - Represents the unique identifier for the EquoApp.
      Returns:
      An instance of the EquoApp class with the specified appName.
    • create

      public static EquoApp create()
      Creates and returns a new instance of the EquoApp class.
      Returns:
      An instance of the EquoApp class.
    • setNewTabPageURL

      public EquoApp setNewTabPageURL(String url)
      Sets the URL of the new tab page for the chromium app.
      Parameters:
      url - Represents the URL of the new tab page.
      Returns:
      The method is returning an instance of the EquoApp class.
    • setAppName

      public static void setAppName(String appName)
      Sets the app name.
      Parameters:
      appName - Represents the name of the application.
    • getAppName

      public static String getAppName()
      Gets the app name.
      Returns:
      Gets the app name.
    • addOSGICompatibilityLayer

      public EquoApp addOSGICompatibilityLayer()
      Adds an OSGi compatibility layer to the EquoApp by starting Felix in a daemon thread.
      Returns:
      The method is returning an instance of the EquoApp class.
    • withBrowserUI

      public EquoApp withBrowserUI()
      Enable the browser UI in an EquoApp.
      Returns:
      The method is returning an instance of the EquoApp class.
    • launch

      public void launch(String uri)
      Launches the application with the given URI.
      Parameters:
      uri - Represents either the name of the file to be launched or a URL based on HTTP/HTTPS, this protocol is mandatory for URLs.
    • launch

      public void launch(URL url)
      Launches the application with specified URL.
      Parameters:
      url - Represents the URL that needs to be launched.
    • launch

      public void launch()
      Sets up a resource handler, try to load the index.html and launches the application.