The Wayback Machine - https://web.archive.org/web/20170710065805/https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Callback.html
Skip to content

Most visited

Recently visited

navigation

GnssMeasurementsEvent.Callback

public static abstract class GnssMeasurementsEvent.Callback
extends Object

java.lang.Object
   ↳ android.location.GnssMeasurementsEvent.Callback


Used for receiving GNSS satellite measurements from the GNSS engine. Each measurement contains raw and computed data identifying a satellite. You can implement this interface and call registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback).

Summary

Constants

int STATUS_LOCATION_DISABLED

GPS provider or Location is disabled, updates will not be received until they are enabled.

int STATUS_NOT_SUPPORTED

The system does not support tracking of GNSS Measurements.

int STATUS_READY

GNSS Measurements are successfully being tracked, it will receive updates once they are available.

Public constructors

GnssMeasurementsEvent.Callback()

Public methods

void onGnssMeasurementsReceived(GnssMeasurementsEvent eventArgs)

Reports the latest collected GNSS Measurements.

void onStatusChanged(int status)

Reports the latest status of the GNSS Measurements sub-system.

Inherited methods

Image From class java.lang.Object

Constants

STATUS_LOCATION_DISABLED

added in API level 24
int STATUS_LOCATION_DISABLED

GPS provider or Location is disabled, updates will not be received until they are enabled.

Constant Value: 2 (0x00000002)

STATUS_NOT_SUPPORTED

added in API level 24
int STATUS_NOT_SUPPORTED

The system does not support tracking of GNSS Measurements.

This status will not change in the future.

Constant Value: 0 (0x00000000)

STATUS_READY

added in API level 24
int STATUS_READY

GNSS Measurements are successfully being tracked, it will receive updates once they are available.

Constant Value: 1 (0x00000001)

Public constructors

GnssMeasurementsEvent.Callback

added in API level 24
GnssMeasurementsEvent.Callback ()

Public methods

onGnssMeasurementsReceived

added in API level 24
void onGnssMeasurementsReceived (GnssMeasurementsEvent eventArgs)

Reports the latest collected GNSS Measurements.

Parameters
eventArgs GnssMeasurementsEvent

onStatusChanged

added in API level 24
void onStatusChanged (int status)

Reports the latest status of the GNSS Measurements sub-system.

Parameters
status int

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.