Platform
The Platform
object represents the platform on which the code is running.
The Platform
class provides information about the current platform.
This class is used for determining the type of platform and the operating system being used. It provides the following properties:
OS
: The name of the operating system as a string.type
: The type of platform as an instance of thePlatformType
enum class.
Usage example:
val osName = Platform.OS
val platformType = Platform.type
Content copied to clipboard