Google 致力于为黑人社区推动种族平等。查看具体举措

androidx.core.location

Classes

GnssStatusCompat

GnssStatus representation that works across all Android versions.

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