core-ktx / androidx.util / android.util.Pair

Extensions for android.util.Pair

component1

operator fun <F, S> Pair<F, S>.component1(): F

Returns the first component of the pair.

component2

operator fun <F, S> Pair<F, S>.component2(): S

Returns the second component of the pair.

toKotlinPair

fun <F, S> Pair<F, S>.toKotlinPair(): Pair<F, S>

Returns this Pair as a kotlin.Pair.