Functions in this namespace allow you to detect when the airlock
object is ready to be called.
- Source:
Members
(static) onReady
Use this function to determine when the airlock object is ready to
receive API calls.
- Source:
Example
// The following lines can be placed in a script element
// in a page's head element.
airlockState.onReady("handleAirlockReady()");
var filesDir;
function handleAirlockReady() {
// Initialize the fileDir variable to the app's files directory.
filesDir = airlock.io.getAppFilesDirectory();
}