Base methods and properties used by LiquidGear. When LiquidGear is initialized, the event, lg_init, is triggered.
Event Trigger:
- lg_init
active
Syntax:
lg.active;
Returns:
- (boolean) Whether or not device can be accessed.
Example:
var isActive = lg.active;
addCall
Adds a function to the queue. This method is only used internally.
Syntax:
lg.addCall(item);
Arguments:
- item – (function) Function to add to the current queue.
nextCall
Called by the framework to pop out the next function and call it.
Syntax:
lg.nextCall();
queue
Syntax:
lg.queue;
Returns:
- (array) An array of queued calls.
Example:
var numQueue = lg.queue.length;
