Skip to main content

System

import { getPlatform, isAndroid, isIOS } from '@rtorcato/js-common/system'

Exports

NameSummary
getPlatformReturns a string representing the detected platform.
isAndroidChecks if the device is running Android.
isIOSChecks if the device is running iOS.
isLinuxChecks if the current OS is Linux.
isMacOsChecks if the current OS is macOS.
isTouchDeviceChecks if the device supports touch events.
isWindowsChecks if the current OS is Windows.