GnssMeasurementsEvent.Callback

2017-7-31 6:43:40 来源: Gnsser 发布人:

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

intSTATUS_LOCATION_DISABLED

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

intSTATUS_NOT_SUPPORTED

The system does not support tracking of GNSS Measurements.

intSTATUS_READY

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

Public constructors

GnssMeasurementsEvent.Callback()

Public methods

voidonGnssMeasurementsReceived(GnssMeasurementsEvent eventArgs)

Reports the latest collected GNSS Measurements.

voidonStatusChanged(int status)

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

Inherited methods


 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
eventArgsGnssMeasurementsEvent


onStatusChanged

added in API level 24

void onStatusChanged (int status)

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


Parameters
statusint


阅读次数: 2755

下一篇: GnssMeasurementsEvent
上一篇: GnssNavigationMessage

尚无评论!

返回上一页面