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

component1

inline operator fun SizeF.component1(): Float

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

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

val (w, h) = mySize