PlatformFamily

The kind of platform the code runs on, for when branches in common code.

Read it from Platform.family. Branch on this enum, never on the strings of Platform.

Entries

Link copied to clipboard

An Android app or library, on a device or an emulator.

Link copied to clipboard

A desktop or server JVM. Android is ANDROID, not JVM.

Link copied to clipboard

iOS, on a device or the simulator.

Link copied to clipboard

macOS, as a Kotlin/Native target. A JVM on a Mac is JVM.

Link copied to clipboard

Kotlin/JS, in a browser or in Node.

Link copied to clipboard

Kotlin/Wasm (wasmJs), in a browser or in Node.

Link copied to clipboard

An Apple OS other than iOS and macOS. No target that KiteCore builds today returns it, so keep an OTHER or else branch for targets added later.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

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

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

Properties

Link copied to clipboard
Link copied to clipboard