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