androidx.core.location


Interfaces

LocationListenerCompat

A version of LocationListener suitable for use on all API levels.

Classes

GnssStatusCompat

GnssStatus representation that works across all Android versions.

GnssStatusCompat.Callback

See GnssStatus.Callback.

LocationCompat

Helper for accessing features in android.location.Location.

LocationManagerCompat

Helper for accessing features in LocationManager.

LocationRequestCompat

Compatibility version of LocationRequest.

LocationRequestCompat.Builder

A builder class for LocationRequestCompat.

Extension functions summary

inline operator Double

Returns the latitude of this Location.

inline 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