type

actual val type: PlatformType(source)

Represents the platform type.

This actual property represents the current platform type. It is used to determine the type of the platform on which the application is being executed. The possible platform types are JVM, ANDROID, IOS, and WEB.

This property is read-only and can be accessed using the type property of the PlatformType class.

Example usage:

val platformType = PlatformType.ANDROID

See also

expect val type: PlatformType(source)
actual val type: PlatformType(source)