Android.Locations Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains the framework API classes that define Android location-based and related services.
Classes
| Name | Description |
|---|---|
| Address |
A class representing an Address, that is, a set of Strings describing a location. |
| Address.InterfaceConsts |
Contains parcelable interface constants for Address. |
| Criteria |
A class indicating the application criteria for selecting a location provider. |
| Criteria.InterfaceConsts |
Contains parcelable interface constants for Criteria. |
| FlushCompleteEventArgs |
Provides the request code for a completed location flush. |
| Geocoder |
A class for handling geocoding and reverse geocoding. |
| Geocoder.ErrorEventArgs |
Provides the error message for a geocoding failure. |
| Geocoder.GeocodeEventArgs |
Provides address results from a geocoding operation. |
| GnssAntennaInfo |
A class that contains information about a GNSS antenna. |
| GnssAntennaInfo.Builder |
Builder class for GnssAntennaInfo. |
| GnssAntennaInfo.EventArgs |
Provides GNSS antenna information for a listener callback. |
| GnssAntennaInfo.InterfaceConsts |
Contains parcelable interface constants for GnssAntennaInfo. |
| GnssAntennaInfo.PhaseCenterOffset |
Class containing information about the antenna phase center offset (PCO). |
| GnssAntennaInfo.PhaseCenterOffset.InterfaceConsts |
Contains parcelable interface constants for GnssAntennaInfo.PhaseCenterOffset. |
| GnssAntennaInfo.SphericalCorrections |
Represents corrections on a spherical mapping. |
| GnssAntennaInfo.SphericalCorrections.InterfaceConsts |
Contains parcelable interface constants for GnssAntennaInfo.SphericalCorrections. |
| GnssAutomaticGainControl |
A class that contains GNSS Automatic Gain Control (AGC) information. |
| GnssAutomaticGainControl.Builder |
Builder for |
| GnssAutomaticGainControl.InterfaceConsts |
Contains parcelable interface constants for GnssAutomaticGainControl. |
| GnssCapabilities |
GNSS chipset capabilities. |
| GnssCapabilities.Builder |
Builder for GnssCapabilities. |
| GnssCapabilities.InterfaceConsts |
Contains parcelable interface constants for GnssCapabilities. |
| GnssClock |
A class containing a GNSS clock timestamp. |
| GnssClock.InterfaceConsts |
Contains parcelable interface constants for GnssClock. |
| GnssMeasurement |
A class representing a GNSS satellite measurement, containing raw and computed information. |
| GnssMeasurement.InterfaceConsts |
Contains parcelable interface constants for GnssMeasurement. |
| GnssMeasurementRequest |
This class contains extra parameters to pass in a GNSS measurement request. |
| GnssMeasurementRequest.Builder |
Builder for |
| GnssMeasurementRequest.InterfaceConsts |
Contains parcelable interface constants for GnssMeasurementRequest. |
| GnssMeasurementsEvent |
A class implementing a container for data associated with a measurement event. |
| GnssMeasurementsEvent.Builder |
Builder for |
| GnssMeasurementsEvent.Callback |
Used for receiving GNSS satellite measurements from the GNSS engine. |
| GnssMeasurementsEvent.InterfaceConsts |
Contains parcelable interface constants for GnssMeasurementsEvent. |
| GnssNavigationMessage |
A class containing a GNSS satellite Navigation Message. |
| GnssNavigationMessage.Callback |
Used for receiving GNSS satellite Navigation Messages from the GNSS engine. |
| GnssNavigationMessage.InterfaceConsts |
Contains parcelable interface constants for GnssNavigationMessage. |
| GnssSignalType |
This class represents a GNSS signal type. |
| GnssSignalType.InterfaceConsts |
Contains parcelable interface constants for GnssSignalType. |
| GnssStatus |
This class represents the current state of the GNSS engine and is used in conjunction with |
| GnssStatus.Builder |
Builder class to help create new GnssStatus instances. |
| GnssStatus.Callback |
Used for receiving notifications when GNSS events happen. |
| GnssStatus.InterfaceConsts |
Contains parcelable interface constants for GnssStatus. |
| GpsSatellite |
This class represents the current state of a GPS satellite. |
| GpsStatus |
This class represents the current state of the GPS engine and is used in conjunction with |
| GpsStatus.EventArgs |
Provides a GPS status event value to a listener. |
| GpsStatus.NmeaEventArgs |
Provides an NMEA sentence and timestamp to a GPS listener. |
| Location |
A data class representing a geographic location. |
| Location.InterfaceConsts |
Contains parcelable interface constants for Location. |
| LocationChangedEventArgs |
Provides a location update to a listener. |
| LocationManager |
This class provides access to the system location services. |
| LocationProvider |
Information about the properties of a location provider. |
| LocationRequest |
An encapsulation of various parameters for requesting location via |
| LocationRequest.Builder |
A builder class for |
| LocationRequest.InterfaceConsts |
Contains parcelable interface constants for LocationRequest. |
| NmeaMessageEventArgs |
Provides an NMEA message and timestamp to a listener. |
| ProviderDisabledEventArgs |
Provides the name of a location provider that was disabled. |
| ProviderEnabledEventArgs |
Provides the name of a location provider that was enabled. |
| SettingInjectorService |
Dynamically specifies the summary (subtitle) and enabled status of a preference injected into the list of app settings displayed by the system settings app |
| StatusChangedEventArgs |
Provides a location provider status update. |
Interfaces
| Name | Description |
|---|---|
| Geocoder.IGeocodeListener |
A listener for asynchronous geocoding results. |
| GnssAntennaInfo.IListener |
Used for receiving GNSS antenna info from the GNSS engine. |
| GpsStatus.IListener |
Used for receiving notifications when GPS status has changed. |
| GpsStatus.INmeaListener |
Used for receiving NMEA sentences from the GPS. |
| ILocationListener |
Used for receiving notifications when the device location has changed. |
| IOnNmeaMessageListener |
Used for receiving NMEA sentences from the GNSS. |
Enums
| Name | Description |
|---|---|
| AccumulatedDeltaRangeState |
Specifies flags that describe a GNSS measurement's accumulated delta range state. |
| Accuracy |
Enumerates values returned by several types. |
| Availability |
Enumerates values returned by several types and taken as a parameter of several types. |
| Format |
Enumerates values returned by the Degrees, Minutes, and Seconds members and taken as a parameter of the F:Android.Locations.Location.Convert member. |
| GnssCapability |
Describes whether a GNSS capability is supported. |
| GnssConstellationType |
Identifies a GNSS satellite constellation. |
| GnssMeasurementCallbackStatus |
Specifies status values for a GNSS measurement callback. |
| GnssNavigationCallbackStatus |
Specifies status values for a GNSS navigation-message callback. |
| GnssNavigationStatus |
Specifies a navigation message status. Obsolete message-type values in this enum are not valid statuses. |
| GnssNavigationType |
Identifies the type of a GNSS navigation message. |
| GnssState |
Specifies flags that describe a GNSS measurement's tracking state. |
| GpsEvent |
Enumerates values returned by several types and taken as a parameter of the F:Android.Locations.GpsStatus+EventArgs..ctor, and F:Android.Locations.GpsStatus+IListener.OnGpsStatusChanged members. |
| LocationRequestQuality |
Specifies a quality hint for location requests. |
| MultipathIndicator |
Indicates whether a GNSS measurement shows signs of multipath. |
| Power |
Enumerates values returned by several types and taken as a parameter of the F:Android.Locations.LocationManager.AddTestProvider member. |
Remarks
The namespace includes APIs for location updates, GNSS satellite status, geocoding, and address information.