AppWindowManager manages the life cycle of AppWindow instances.
It on demand creates a new AppWindow instance, resize an existing AppWindow instance, destroy a closing AppWindow instance.
Methods
-
static broadcastMessage(message, detail)
-
Broadcast message to all running app window instances
Parameters:
Name Type Argument Description message String The message name
detail Object optional The detail of the message
-
static init()
-
The init process of AppWindowManager: 1. Wait for FTU to be runned or skipped. 2. Launch homescreen after 1.
-
static kill(origin)
-
Kill the running app window by origin
Parameters:
Name Type Description origin String The origin of the running app window to be killed
-
static launch(config)
-
Instanciate app window by configuration
Parameters:
Name Type Description config AppConfig The configuration of the app window