Package com.equo.application.client
Class EquoApp
java.lang.Object
com.equo.application.client.EquoApp
EquoApp facilitates the easy creation of Chromium-based applications and
their customization.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an OSGi compatibility layer to the EquoApp by starting Felix in a daemon thread.static EquoApp
create()
Creates and returns a new instance of the EquoApp class.static EquoApp
Creates and returns a new instance of the EquoApp class with the specified appName.static String
Gets the app name.void
launch()
Sets up a resource handler, try to load the index.html and launches the application.void
Launches the application with the given URI.void
Launches the application with specified URL.static void
setAppName
(String appName) Sets the app name.setNewTabPageURL
(String url) Sets the URL of the new tab page for the chromium app.Enable the browser UI in an EquoApp.
-
Field Details
-
CHROMIUM_ARGS
- See Also:
-
NEW_TAB_URL_SWITCH
- See Also:
-
APP_ID_SWITCH
- See Also:
-
-
Method Details
-
create
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
Creates and returns a new instance of the EquoApp class.- Returns:
- An instance of the EquoApp class.
-
setNewTabPageURL
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
Sets the app name.- Parameters:
appName
- Represents the name of the application.
-
getAppName
Gets the app name.- Returns:
- Gets the app name.
-
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
Enable the browser UI in an EquoApp.- Returns:
- The method is returning an instance of the EquoApp class.
-
launch
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
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.
-