Tag event callback type
Reference to the current system dialog, only one dialog is allowed at a time. A dialog may have sub dialog
Indicate whether the system is in fullscreen mode
HTML schemes used by the system:
Element id of the virtual desktop, used by JQuery
Top most element z index value, start by 10
Find a list of applications that support a specific mime type in the system packages meta-data
the mime type
Find all applications that have services attached to it. This function allows to collect all the services available on the system. These services may or may not be running.
result in forme of:
service_name:service-meta-data
key-value pairs
Attach a running service process to the system tray
reference to the running service process
Register a hot key and its handle in the system shortcut
the hotkey e.g. ALT-C
handle function
force to rebind the hotkey
Clear the current system theme
Detach a running process from the system tray
reference to the running service process
Dock an application to the system application dock
reference to the application process
Application meta-data
Kil all processes related to an application, reload the application prototype definition and launch a new process of this application.
This function is used only for debug purpose or used by AntOSDK during in-browser application development
the application class name
application arguments
Convert an application html scheme to UI elements, then insert this UI scheme to the DOM tree.
This function renders the UI of the application before calling the application's main function
html scheme string
reference to the target application
The parent HTML element where the application is rendered. This is usually the reference to the virtual desktop element.
Launch an application with arguments
application class name
application arguments
Load an application scheme file then render it with htmlToScheme
VFS path to the scheme file
the target application
The parent HTML element where the application is rendered.
Load a theme based on its name, then refresh the system UI theme
name of the theme e.g. antos_dark
force to clear the system theme before applying the new one
Show the login screen and perform the login operation.
Once login successfully, the startAntOS will be called
Open a system dialog.
a dialog object or a dialog class name
A promise on the callback data of the dialog, refer to each dialog definition for the format of the callback data
Find an launch an application using input application argument such as VFS file meta-data.
Based on the input application argument, the function will try to find all applications that is compatible with that argument. Three cases possible:
application argument
Create a service process.
Services are singleton processes, there is only one process of a service at a time
Synchronously start a list of services
list of service class names
Refresh the virtual desktop
Start AntOS after a successful login.
This function performs the following operations:
Toggle system fullscreen
Remove an application process from the system application dock. This action will also exit the process
Kill an running processes of an application, then unregister the application prototype definition from the application namespace.
This process is similar to uninstall the application from the current system state
Load and apply system wallpaper from the setting object
wallpaper setting object
This namespace is dedicated to all APIs related to AntOS UI system, these API are called AFX APIs which handle: