core-ktx / androidx.util / android.util.Size / component2

component2

inline operator fun Size.component2(): Int

Returns "height", the second component of this Size.

This method allows to use destructuring declarations when working with sizes, for example:

val (w, h) = mySize