webos/deviceinfo
Provides a function to get the device-specific information.
Members
Section titled “Members ”deviceinfo Function
Section titled “deviceinfo   Function ”deviceinfo( callback ) → undefinedGets the device-specific information regarding model, OS version, specifications, etc.
1 Param
- callback webos/deviceinfowebos/deviceinfo~deviceCallback
Called once the information is collected
Returns
- undefined
Type Definitions
Section titled “Type Definitions ”deviceCallback Function
Section titled “deviceCallback   Function ”deviceCallback(info)
Section titled “deviceCallback(info)”Callback signature for deviceinfo
1 Param
- info Object
JSON object containing the device information details
- modelName String
Model name of device in UTF-8 format
- modelNameAscii String
Model name of device in ASCII format
- version String
Full OS firmware version string
- versionMajor Number
Subset of OS version string: Major version number
- versionMinor Number
Subset of OS version string: Minor version number
- versionDot Number
Subset of OS version string: Dot version number
- sdkVersion String
webOS SDK version
- screenWidth Number
Width in pixels
- screenHeight Number
Height in pixels
- Optional • uhd Boolean
Whether supports Ultra HD resolution.