OperatingSystem

A machine operating system.

Windows"windows"
GNU/Linux"linux"
MacOS"osx", "mac os x", "darwin"
Solaris"solaris", "sunos"

Functions

Link copied to clipboard
Returns a human-consumable display name for this operating system.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun isCurrent(): Boolean
Is this the current OS?
Link copied to clipboard
abstract fun isFreeBSD(): Boolean
Is it FreeBSD?
Link copied to clipboard
abstract fun isLinux(): Boolean
Is it Linux?
Link copied to clipboard
abstract fun isMacOsX(): Boolean
Is it macOS?
Link copied to clipboard
abstract fun isSolaris(): Boolean
Is it Solaris?
Link copied to clipboard
abstract fun isWindows(): Boolean
Is it Windows?