Platform

interface Platform

Provides an API for retrieving platform information. Allowing the Platform to be an interface allows for the use of these APIs in tests, where you can provide mock implementations.

Inheritors

Properties

Link copied to clipboard

The compilation target of the current platform.

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

The environment for this process.

Link copied to clipboard
abstract val isDebug: Boolean

Returns true if binary was compiled in debug mode.

Link copied to clipboard

The runtime operating system of the current platform.