Properties
Link copied to clipboard
Build variant
Link copied to clipboard
JVM, Android & K/N: true Android: true JS, WASM_JS: false <-- workers have different heaps
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
Whether this is running in a JS or a WASM runtime
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
Whether this is running in a JS worker environment
Link copied to clipboard
Whether this is a little endian platform
Link copied to clipboard
Whether this is running with Kotlin/Native in a desktop environment
Link copied to clipboard
Link copied to clipboard
Raw platform name
Functions
Link copied to clipboard
operator fun invoke(endian: Endian = Endian.LITTLE_ENDIAN, arch: Arch = Arch.UNKNOWN, os: Os = Os.UNKNOWN, runtime: Runtime = Runtime.JVM, buildVariant: BuildVariant = BuildVariant.DEBUG, rawPlatformName: String = "unknown", rawOsName: String = "unknown", hasMultithreadedSharedHeap: Boolean = false): Platform