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( )PlatformDescription
Returns 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
true
if the platform has native double-finger events- node •
- Boolean
true
only ifwindow
isundefined
- platformName
- String
The name of the platform, if detected
- touch •
- Boolean
true
if the platform has native single-finger events- touchsreen •
- Boolean
true
if the platform has a touch screen- unknown •
- Boolean
true
for any unknown system
ArrayBooleanFunctionModuleNumberObjectString