core/platform
Utilities for detecting basic platform capabilities.
import platform from '@enact/core/platform';Members
platformPlatformDescription
Provides basic information about the running platform.
detectFunction
detect( )PlatformDescriptionReturns the core/platform.platform object.
Returns
- PlatformDescription
The core/platform.platform object
Type Definitions
PlatformDescriptionObject
- extra
- Object
Additional information about the detected platform
- gesture •
- Boolean
trueif the platform has native double-finger events- node •
- Boolean
trueonly ifwindowisundefined- platformName
- String
The name of the platform, if detected
- touch •
- Boolean
trueif the platform has native single-finger events- touchscreen •
- Boolean
trueif the platform has a touch screen- unknown •
- Boolean
truefor any unknown system
ArrayBooleanFunctionModuleNumberObjectString