@rtorcato/js-common / system
system
Functions
isMacOs()
isMacOs():
boolean
Defined in: system/index.ts:5
Checks if the current OS is macOS.
Returns
boolean
True if macOS, false otherwise.
isWindows()
isWindows():
boolean
Defined in: system/index.ts:19
Checks if the current OS is Windows.
Returns
boolean
True if Windows, false otherwise.
isLinux()
isLinux():
boolean
Defined in: system/index.ts:33
Checks if the current OS is Linux.
Returns
boolean
True if Linux, false otherwise.
isIOS()
isIOS():
boolean
Defined in: system/index.ts:47
Checks if the device is running iOS.
Returns
boolean
True if iOS, false otherwise.
isAndroid()
isAndroid():
boolean
Defined in: system/index.ts:58
Checks if the device is running Android.
Returns
boolean
True if Android, false otherwise.
getPlatform()
getPlatform():
string
Defined in: system/index.ts:69
Returns a string representing the detected platform.
Returns
string
The platform name (e.g., 'macos', 'windows', 'linux', 'ios', 'android', or 'unknown').
isTouchDevice()
isTouchDevice():
boolean
Defined in: system/index.ts:82
Checks if the device supports touch events.
Returns
boolean
True if touch is supported, false otherwise.