Device information. Everything you need to know about the current hardware and software on your iPhone.

 

appVersion

Your application version.


Syntax:

lg.info.appVersion;

Returns:

  • (string) version.


Example:

var appversion = lg.info.appVersion;

Back to Top

 

 

batteryLevel

The battery charge level for the device.


Syntax:

lg.info.batteryLevel;

Returns:

  • (numeric) charge level, 0 is dead, 1 is fully charged.


Example:

var batteryLevel = lg.info.batteryLevel;

Back to Top

 

 

batteryState

The battery state for the device.


Syntax:

lg.info.batteryLevel;

Returns:

  • (string) Batery states: unknown, unplugged, charging, and full.


Example:

var batteryState = lg.info.batteryState;

Back to Top

 

 

height

Current display height.


Syntax:

lg.info.height;

Returns:

  • (float) height.


Example:

var height = lg.info.height;

Back to Top

 

 

id

A string unique to each device based on various hardware details.


Syntax:

lg.info.id;

Returns:

  • (string) Unique device ID.


Example:

var id = lg.info.id;

Back to Top

 

 

lgVersion

LiquidGear version.


Syntax:

lg.info.lgVersion;

Returns:

  • (string) version.


Example:

var lgversion = lg.info.lgVersion;

Back to Top

 

 

model

The model of the device.


Syntax:

lg.info.model;

Returns:

  • (string) Model.


Example:

var model = lg.info.model;

Back to Top

 

 

name

The name identifying the device.


Syntax:

lg.info.name;

Returns:

  • (string) Device name.


Example:

var name = lg.info.name;

Back to Top

 

 

os

The name of the operating system running on the device represented by the receiver.


Syntax:

lg.info.os;

Returns:

  • (string) OS Name.


Example:

var os = lg.info.os;

Back to Top

 

 

proximity

A Boolean value indicating whether the proximity sensor is close to the user (true) or not (false).


Syntax:

lg.info.proximity;

Returns:

  • (boolean) whether or not the device is close to the user.


Example:

var proximity = lg.info.proximity;

Back to Top

 

 

update

Get updated information from the device and set properties.


Syntax:

lg.info.update();

Event Trigger:

  • lg_info

Back to Top

 

 

version

The current version of the operating system.


Syntax:

lg.info.version;

Returns:

  • (string) Version.


Example:

var version = lg.info.version;

Back to Top

 

 

width

Current display width.


Syntax:

lg.info.width;

Returns:

  • (float) width.


Example:

var width = lg.info.width;

Back to Top

 

 

wifi

Determines if device is using network connection from wifi or not.


Syntax:

lg.info.wifi;

Returns:

  • (boolean) Wifi on or off.


Example:

var wifi = lg.info.wifi;

Back to Top