core-ktx / androidx.graphics / android.graphics.Point / component2

component2

inline operator fun Point.component2(): Int

Returns the y coordinate of this point.

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

val (x, y) = myPoint