core/platform

Exports the core/platform.detect method and the core/platform.platform object to get information about the current platform. The default export is core/platform.platform.

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

Members

platform

core/platform.platform provides basic information about the running platform.

Properties
gesture
Boolean

Set true if the platform has native double-finger events

node
Boolean

Set true only if window is undefined

platformName
String

Set to the name of the platform

touch
Boolean

Set true if the platform has native single-finger events

unknown
Boolean

Set true for any unknown system

detectFunction

detect()Object

core/platform.detect returns the core/platform.platform object.

Returns
Object

the core/platform.platform object

ArrayBooleanFunctionModuleNumberObjectString