Platform

@Serializable
enum Platform : Enum<Platform> (source)

The set of runtime environments a Krill participant can advertise.

@Serializable because the value rides inside multicast beacons and HTTP responses. Ordinals and names are part of the wire contract — adding a new entry is safe (older readers will fail to deserialize, which is the desired fail-loud behaviour); reordering or renaming existing entries is not.

Entries

Link copied to clipboard

Apple iOS / iPadOS — Compose Multiplatform iOS target.

Link copied to clipboard

Android — both phone/tablet and Android-on-Pi installations.

Link copied to clipboard

Desktop JVM — macOS, Linux, Windows running the Compose desktop client.

Link copied to clipboard

Browser — the wasmJs Compose target served by the Krill server.

Link copied to clipboard

A Krill server running on a Raspberry Pi (with GPIO/PWM/I2C access via krill-pi4j).

Link copied to clipboard

A Krill server running headless on a non-Pi host (no hardware GPIO).

Link copied to clipboard

Fallback for environments that have not yet identified themselves.

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
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

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

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.