/documentation/af.ui/$.ui.launch.md
Markdown | 49 lines | 28 code | 21 blank | 0 comment | 0 complexity | 1adeb1fe44d509a4c663fffd3caf0be5 MD5 | raw file
- #$.ui.launch();
- ```
- This is callled when you want to launch afui. If autoLaunch is set to true, it gets called on DOMContentLoaded.
- If autoLaunch is set to false, you can manually invoke it.
-
- ```
- ##Example
- ```
- $.ui.autoLaunch=false;
- $.ui.launch();
-
- ```
- ##Parameters
- ```
- ```
- ##Returns
- ```
- undefined
- ```
- ##Detail
- $.ui.launch() tells App Framework UI to run the startup code. When $.ui.autoLaunch is set to true, this is called when the DOM is ready.
- ```
- $.ui.autoLaunch=false;
- /* Do your stuff */
- function doLaunch(){
- $.ui.launch();
- }
- document.addEventListener("intel.xdk.device.ready",doLaunch,false); //Intel apps
- document.addEventListener("deviceready",doLaunch,false);// Phonegap apps
- ```