Impl

data class Impl(val endian: Endian, val arch: Arch, val os: Os, val runtime: Runtime, val buildVariant: BuildVariant, val rawPlatformName: String, val rawOsName: String, val hasMultithreadedSharedHeap: Boolean) : Platform

Constructors

Link copied to clipboard
constructor(endian: Endian, arch: Arch, os: Os, runtime: Runtime, buildVariant: BuildVariant, rawPlatformName: String, rawOsName: String, hasMultithreadedSharedHeap: Boolean)

Properties

Link copied to clipboard
open override val arch: Arch

Architecture

Link copied to clipboard
open override val buildVariant: BuildVariant

Build variant

Link copied to clipboard
open override val endian: Endian

Endian-ness

Link copied to clipboard

JVM, Android & K/N: true Android: true JS, WASM_JS: false <-- workers have different heaps

Link copied to clipboard
open val isAndroid: Boolean

Whether this is an Android platform

Link copied to clipboard
open val isApple: Boolean

Whether this is an Apple device

Link copied to clipboard

Whether this is a mobile platform

Link copied to clipboard

Whether this is a big endian platform

Link copied to clipboard
open val isDebug: Boolean

Whether this is a debug build

Link copied to clipboard

Whether this is running in a JS or a WASM runtime

Link copied to clipboard
open val isIos: Boolean

Whether this is an iOS platform

Link copied to clipboard
open val isJs: Boolean

Whether this is running in JS

Link copied to clipboard

Whether this is running in a JS browser environment

Link copied to clipboard

Whether this is running in a JS browser or worker environment

Link copied to clipboard

Whether this is running in a JS Deno environment

Link copied to clipboard

Whether this is running in a JS Node.js environment

Link copied to clipboard

Whether this is running in a JS or a WASM runtime

Link copied to clipboard
open val isJsShell: Boolean

Whether this is running in a JS shell

Link copied to clipboard

Whether this is running in a JS worker environment

Link copied to clipboard
open val isJvm: Boolean

Whether this is running in a JVM

Link copied to clipboard
open val isLinux: Boolean

Whether this is a Linux platform

Link copied to clipboard

Whether this is a little endian platform

Link copied to clipboard
open val isMac: Boolean

Whether this is a Mac platform

Link copied to clipboard
open val isNative: Boolean

Whether this is running with Kotlin/Native

Link copied to clipboard

Whether this is running with Kotlin/Native in a desktop environment

Link copied to clipboard
open val isPosix: Boolean

Whether this is a Posix platform

Link copied to clipboard
open val isRelease: Boolean

Whether this is a release build

Link copied to clipboard
open val isTvos: Boolean

Whether this is a tvOS platform

Link copied to clipboard
open val isUnix: Boolean

Whether this is a Unix platform

Link copied to clipboard
open val isWasm: Boolean

Whether this is running in WASM

Link copied to clipboard
open val isWatchos: Boolean

Whether this is a watchOS platform

Link copied to clipboard
open val isWindows: Boolean

Whether this is a Windows platform

Link copied to clipboard
open override val os: Os

Operating System

Link copied to clipboard
open override val rawOsName: String

Raw OS name

Link copied to clipboard
open override val rawPlatformName: String

Raw platform name

Link copied to clipboard
open override val runtime: Runtime

Runtime