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;
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;
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;
height
Current display height.
Syntax:
lg.info.height;
Returns:
- (float) height.
Example:
var height = lg.info.height;
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;
lgVersion
LiquidGear version.
Syntax:
lg.info.lgVersion;
Returns:
- (string) version.
Example:
var lgversion = lg.info.lgVersion;
model
The model of the device.
Syntax:
lg.info.model;
Returns:
- (string) Model.
Example:
var model = lg.info.model;
name
The name identifying the device.
Syntax:
lg.info.name;
Returns:
- (string) Device name.
Example:
var name = lg.info.name;
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;
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;
update
Get updated information from the device and set properties.
Syntax:
lg.info.update();
Event Trigger:
- lg_info
version
The current version of the operating system.
Syntax:
lg.info.version;
Returns:
- (string) Version.
Example:
var version = lg.info.version;
width
Current display width.
Syntax:
lg.info.width;
Returns:
- (float) width.
Example:
var width = lg.info.width;
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;
