You must create the onLaunchboxLoaded
method of the browser's
window object (where you place the entry point to your application) before you can use any of
the APIs:
window.launchbox.object_name
objects
objects that belong to the following APIs, which are based on standard W3C APIs: Filesystem and Geolocation
objects you added to the window
instance, i.e.
window.object_name
objects
The method is called by the Hybrid Container when it loads all JavaScript/native code and web apps are allowed to call all their APIs.
Public objects in the File API can be accessed directly, using the
window.
object_name
reference.
All the other objects in these APIs can be accessed using
the window.launchbox.
object_name
reference.