new HomescreenLauncher()
HomescreenLauncher is responsible for launching the homescreen window
instance and make sure it's a singleton.
Every extermal modules should usewindow.homescreenLauncher.getHomescreen()
to access the homescreen window instance. Since window.homescreenLauncher
should be instantiated and started in bootstrap.js
Example
var home = HomescreenLauncher.getHomescreen();
home.open(); // Do the open animation.
Members
-
origin :string
-
Origin of homescreen.
-
ready :boolean
-
Homescreen launcher is ready or not. Homescreen launcher is ready only when it is done retrieving 'homescreen.manifestURL' from settings DB.
Methods
-
getHomescreen() → {HomescreenWindow}
-
Get instance of homescreen window singleton
Returns:
HomescreenWindowInstance of homescreen window singleton, or null if HomescreenLauncher is not ready
-
start()
-
Start process
-
stop()
-
Stop process
Events
-
homescreen-changed
-
Fired when homescreen launcher detect 'homescreen.manifestURL' changed
-
homescreen-ready
-
Fired when homescreen launcher is done retriving 'homescreen.manifestURL'