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

component1

inline operator fun Size.component1(): Int

Returns "width", the first component of this Size.

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

val (w, h) = mySize