webos/platform

Exports the webos/platform.platform object that contains basic device type information for webOS platforms. For detection of non-webOS platforms, use the core/platform module.

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

Members

platform

webos/platform.platform provides identification of webOS variants.

Properties
legacy

Set true for legacy webOS (Palm and HP hardware)

open

Set true for Open webOS

tv

Set true for LG webOS SmartTV

unknown

Set true for any unknown system

watch

Set true for LG webOS SmartWatch

detectFunction

detect()Object

webos/platform.detect returns the webos/platform.platform object.

Returns
Object

the webos/platform.platform object

ArrayBooleanFunctionModuleNumberObjectString