public abstract static class GnssMeasurementsEvent.Callback extends Object
LocationManager.registerGnssMeasurementsCallback(android.location.GnssMeasurementsEvent.Callback)
.Modifier and Type | Class and Description |
---|---|
static interface |
GnssMeasurementsEvent.Callback.GnssMeasurementsStatus
The status of the GNSS measurements event.
|
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_LOCATION_DISABLED
GPS provider or Location is disabled, updates will not be received until they are
enabled.
|
static int |
STATUS_NOT_SUPPORTED
The system does not support tracking of GNSS Measurements.
|
static int |
STATUS_READY
GNSS Measurements are successfully being tracked, it will receive updates once they are
available.
|
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
void |
onGnssMeasurementsReceived(GnssMeasurementsEvent eventArgs)
Reports the latest collected GNSS Measurements.
|
void |
onStatusChanged(int status)
Reports the latest status of the GNSS Measurements sub-system.
|
public static final int STATUS_NOT_SUPPORTED
This status will not change in the future.
public static final int STATUS_READY
public static final int STATUS_LOCATION_DISABLED
public void onGnssMeasurementsReceived(GnssMeasurementsEvent eventArgs)
public void onStatusChanged(int status)