Unit

expect object Unit(source)

The type with only one value: the Unit object. This type corresponds to the void type in Java.

Since Kotlin

1.0
actual object Unit(source)

The type with only one value: the Unit object. This type corresponds to the void type in Java.

Since Kotlin

1.1
actual object Unit(source)

The type with only one value: the Unit object. This type corresponds to the void type in Java.

Since Kotlin

1.0
actual object Unit(source)

The type with only one value: the Unit object.

Since Kotlin

1.3
actual object Unit(source)

The type with only one value: the Unit object. This type corresponds to the void type in Java.

Since Kotlin

1.8
actual object Unit(source)

The type with only one value: the Unit object. This type corresponds to the void type in Java.

Since Kotlin

1.8

Functions

Link copied to clipboard
open override fun toString(): String
Since Kotlin 1.1
open override fun toString(): String
Since Kotlin 1.0
open override fun toString(): String
Since Kotlin 1.3
open override fun toString(): String
Since Kotlin 1.8
open override fun toString(): String
Since Kotlin 1.8