Platform

class Platform

Identity of the host platform: its name, osVersion, deviceModel, and family. Read it from Platform.current.

Field values by target:

Values are best-effort and may be empty when a host does not report them.

val platform = Platform.current
println(platform) // e.g. "iOS 17.4 (iPhone15,3)"

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String