core-ktx / androidx.graphics / android.graphics.RectF / component4

component4

inline operator fun RectF.component4(): Float

Returns "bottom", the fourth component of the rectangle.

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

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