Register now for Android Dev Summit 2019!

androidx.core.location

Classes

LocationManagerCompat

Helper for accessing features in LocationManager.

Extension functions summary

For android.location.Location
operator Double

Returns the latitude of this Location.

operator Double

Returns the longitude of this Location.

Extension functions

component1

inline operator fun Location.component1(): Double

Returns the latitude of this Location.

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


val (lat, lon) = myLocation

component2

inline operator fun Location.component2(): Double

Returns the longitude of this Location.

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


val (lat, lon) = myLocation