# Print output for @column tags ?>
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
LocationManager#registerGnssMeasurementsCallback
.
Constants | |
---|---|
int |
STATUS_LOCATION_DISABLED
GPS provider or Location is disabled, updates will not be received until they are enabled. |
int |
STATUS_NOT_ALLOWED
The client is not allowed to register for GNSS Measurements in general or in the requested mode. |
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 | |
---|---|
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 | |
---|---|
public static final int STATUS_LOCATION_DISABLED
GPS provider or Location is disabled, updates will not be received until they are enabled.
Constant Value: 2 (0x00000002)
public static final int STATUS_NOT_ALLOWED
The client is not allowed to register for GNSS Measurements in general or in the requested mode.
Such a status is returned when a client tries to request a functionality from the GNSS chipset while another client has an ongoing request that does not allow such functionality to be performed.
If such a status is received, one would try again at a later time point where no other client is having a conflicting request.
Constant Value: 3 (0x00000003)
public static final 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)
public static final int STATUS_READY
GNSS Measurements are successfully being tracked, it will receive updates once they are available.
Constant Value: 1 (0x00000001)
public Callback ()
public void onGnssMeasurementsReceived (GnssMeasurementsEvent eventArgs)
Reports the latest collected GNSS Measurements.
Parameters | |
---|---|
eventArgs |
GnssMeasurementsEvent |
public void onStatusChanged (int status)
Reports the latest status of the GNSS Measurements sub-system.
Parameters | |
---|---|
status |
int : Value is STATUS_NOT_SUPPORTED , STATUS_READY , STATUS_LOCATION_DISABLED , or STATUS_NOT_ALLOWED |