Notifications used on the device.
alert
Syntax:
lg.notify.alert(obj);
Arguments:
- 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'});
badge
Add a red badge on the application icon.
Syntax:
lg.notify.badge(number);
Arguments:
- number – (int) Number to set.
Example:
lg.notify.badge(3);
beep
Plays an alert beep specified by the sfxBeep property.
Syntax:
lg.notify.beep();
sfxBeep
Default beep to be used. Default sound is currently beep.mp3.
Syntax:
lg.notify.sfxBeep;
Example:
lg.notify.sfxBeep = "beep.mp3";
vibrate
Invoke a brief vibration.
Syntax:
lg.notify.vibrate();
