Notifications used on the device.

 

alert

Syntax:

lg.notify.alert(obj);

Arguments:

  1. obj – (object)
    • msg – (string) Text within the alert box.
    • title – (string) Title text. Default is “alert”.
    • btn – (string) Name of the dismiss button. Default is “Ok”.


Example:

lg.notify.alert({msg:'This is a test', btn:'Ok', title:'alert'});

Back to Top

 

 

badge

Add a red badge on the application icon.


Syntax:

lg.notify.badge(number);

Arguments:

  1. number – (int) Number to set.


Example:

lg.notify.badge(3);

Back to Top

 

 

beep

Plays an alert beep specified by the sfxBeep property.


Syntax:

lg.notify.beep();

Back to Top

 

 

sfxBeep

Default beep to be used. Default sound is currently beep.mp3.


Syntax:

lg.notify.sfxBeep;

Example:

lg.notify.sfxBeep = "beep.mp3";

Back to Top

 

 

vibrate

Invoke a brief vibration.


Syntax:

lg.notify.vibrate();

Back to Top