Base methods and properties used by LiquidGear. When LiquidGear is initialized, the event, lg_init, is triggered.

Event Trigger:

  • lg_init

Back to Top

 

 

active

Syntax:

lg.active;

Returns:

  • (boolean) Whether or not device can be accessed.


Example:

var isActive = lg.active;

Back to Top

 

 

addCall

Adds a function to the queue. This method is only used internally.
Syntax:

lg.addCall(item);

Arguments:

  1. item – (function) Function to add to the current queue.

Back to Top

 

 

nextCall

Called by the framework to pop out the next function and call it.

Syntax:

lg.nextCall();

Back to Top

 

 

queue

Syntax:

lg.queue;

Returns:

  • (array) An array of queued calls.


Example:

var numQueue = lg.queue.length;

Back to Top