Platform

interface Platform(source)

Platform interface representing platform-specific implementations.

This interface is expected to be implemented by each target in a Kotlin Multiplatform project (e.g., Android, iOS). It is typically used to get platform-specific information like the name of the platform.

Inheritors

AndroidPlatform
JVMPlatform
IOSPlatform
WasmPlatform

Properties

Link copied to clipboard
abstract val name: String

The name of the platform (e.g., "Android", "iOS").