core-ktx / androidx.graphics / android.graphics.Rect / component1

component1

inline operator fun Rect.component1(): Int

Returns "left", the first component of the rectangle.

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

val (left, top, right, bottom) = myRectangle