webos/deviceinfo

Provides a function to get the device-specific information.

import deviceinfo from '@enact/webos/deviceinfo';

Members

deviceinfoFunction

deviceinfo(callback)

Gets the device-specific information regarding model, OS version, specifications, etc.

1 Param
callback webos/deviceinfo~deviceCallback

Called once the information is collected

Type Definitions

deviceCallbackFunction

deviceCallback(info)

Callback signature for deviceinfo

1 Param
info Object

JSON object containing the device information details

Object keys for info
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

uhd Boolean

Whether supports Ultra HD resolution.

ArrayBooleanFunctionModuleNumberObjectString