This namespace is the main entry point of AntOS API
Variable represents the current AntOS version, it is an instance of Version
Placeholder for all the callbacks that are called when the system exits. These callbacks are useful when an application or service wants to perform a particular task before shuting down the system
Booting up AntOS. This function checks whether the user is successfully logged in, then call startAntOS, otherwise it shows the login screen
This function cleans up the entire system and makes sure the system is in a new and clean session. It performs the following operations:
Perform the system shutdown operation. This function calls all clean up handles in cleanupHandles, then save the system setting before exiting
Register a callback to the system cleanupHandles
callback string name
the callback handle
Register a model prototype to the system namespace. There are two types of model to be registered, if the model is of type SubWindow, its prototype will be registered in the dialogs namespace, otherwise, if the model type is Application or Service, its prototype will be registered in the application namespace.
When a model is loaded in the system, its prototype is registered for later uses
the corresponding class
Reset the system settings to default values
Apply the input parameter object to system settings. This object could be an object loaded from setting JSON file saved on the server.