{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
interface CoordinatesProvider
GeneralLocation |
Calculates coordinate position for general locations. |
Interface to implement calculation of Coordinates.
Public functions |
|
|---|---|
FloatArray<Float>! |
calculateCoordinates(view: View!)Calculates coordinates of given view. |
fun calculateCoordinates(view: View!): FloatArray<Float>!
Calculates coordinates of given view.
| Parameters | |
|---|---|
view: View! |
the View which is used for the calculation. |
| Returns | |
|---|---|
FloatArray<Float>! |
a float[] with x and y values of the calculated coordinates. |