KPlatform

The Platform implementation for the system that delegates to the specific implementations.

Simply create an instance of this class and use it to get the platform information.

val platform = KPlatform()
println(platform.operatingSystem.isAndroid)
println(platform.compilationTarget)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The compilation target of the current platform.

Link copied to clipboard
open override val environment: Map<String, String>

The environment for this process.

Link copied to clipboard
open override val isDebug: Boolean

Returns true if binary was compiled in debug mode.

Link copied to clipboard
open override val operatingSystem: OperatingSystem

The runtime operating system of the current platform.