GnssStatus.Callback

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

GnssStatus.Callback

public static abstract class GnssStatus.Callback 
extends Object 

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



Used for receiving notifications when GNSS events happen.

Summary


Public constructors

GnssStatus.Callback()

Public methods

voidonFirstFix(int ttffMillis)

Called when the GNSS system has received its first fix since starting.

voidonSatelliteStatusChanged(GnssStatus status)

Called periodically to report GNSS satellite status.

voidonStarted()

Called when GNSS system has started.

voidonStopped()

Called when GNSS system has stopped.

Inherited methods


 From class java.lang.Object

Public constructors


GnssStatus.Callback

added in API level 24

GnssStatus.Callback ()



Public methods


onFirstFix

added in API level 24

void onFirstFix (int ttffMillis)

Called when the GNSS system has received its first fix since starting.


Parameters
ttffMillisint: the time from start to first fix in milliseconds.


onSatelliteStatusChanged

added in API level 24

void onSatelliteStatusChanged (GnssStatus status)

Called periodically to report GNSS satellite status.


Parameters
statusGnssStatus: the current status of all satellites.


onStarted

added in API level 24

void onStarted ()

Called when GNSS system has started.


onStopped

added in API level 24

void onStopped ()

Called when GNSS system has stopped.


阅读次数: 3033

下一篇: GnssStatus
上一篇: LocationManager

尚无评论!

返回上一页面