webos/platform
Utilities for webOS platform detection.
import platform from '@enact/webos/platform';
Members
platformObject
Provides identification of webOS variants.
Properties
- legacy
- Boolean
true
for legacy webOS (Palm and HP hardware)- open
- Boolean
true
for Open webOS- tv
- Boolean
true
for LG webOS SmartTV- unknown
- Boolean
true
for any unknown system- watch
- Boolean
true
for LG webOS SmartWatch
detectFunction
detect( )Object
Returns the webos/platform.platform object.
Returns
- Object
The webos/platform.platform object
ArrayBooleanFunctionModuleNumberObjectString