core/platform

Utilities for detecting basic platform capabilities.

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

Members

platformObject

Provides basic information about the running platform.

Properties
gesture
Boolean

true if the platform has native double-finger events

node
Boolean

true only if window is undefined

platformName
String

The name of the platform

touch
Boolean

true if the platform has native single-finger events

unknown
Boolean

true for any unknown system

detectFunction

detect()Object

Returns the core/platform.platform object.

Returns
Object

The core/platform.platform object

ArrayBooleanFunctionModuleNumberObjectString