Os

enum Os : Enum<Os>

Operating System

Entries

Link copied to clipboard

Unknown OS

Link copied to clipboard

Web Assembly

Link copied to clipboard

Linux

Link copied to clipboard

Windows

Link copied to clipboard

Android

Link copied to clipboard

Apple macOS

Link copied to clipboard

Apple iOS

Link copied to clipboard

Apple tvOS

Link copied to clipboard

Apple watchOS

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Whether this OS is ANDROID

Link copied to clipboard

Whether this OS is from Apple

Link copied to clipboard

Whether this OS is IOS or TVOS

Link copied to clipboard

Whether this OS is LINUX or WINDOWS or MACOSX

Link copied to clipboard

Whether this OS is WASM

Link copied to clipboard

Whether this OS is LINUX

Link copied to clipboard

Whether this OS is MACOSX

Link copied to clipboard

Whether this OS is a mobile OS

Link copied to clipboard

Whether this OS is a Unix-like OS (any OS but Windows)

Link copied to clipboard

Whether this OS is TVOS

Link copied to clipboard

Whether this OS is WATCHOS

Link copied to clipboard

Whether this OS is WINDOWS

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Os

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<Os>

Returns an array containing the constants of this enum type, in the order they're declared.