lightbulb_outline Please take our October 2018 developer survey. Start survey

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

void onFirstFix(int ttffMillis)

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

void onSatelliteStatusChanged(GnssStatus status)

Called periodically to report GNSS satellite status.

void onStarted()

Called when GNSS system has started.

void onStopped()

Called when GNSS system has stopped.

Inherited methods

Public constructors

GnssStatus.Callback

added in API level 24
public GnssStatus.Callback ()

Public methods

onFirstFix

added in API level 24
public void onFirstFix (int ttffMillis)

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

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

onSatelliteStatusChanged

added in API level 24
public void onSatelliteStatusChanged (GnssStatus status)

Called periodically to report GNSS satellite status.

Parameters
status GnssStatus: the current status of all satellites.

onStarted

added in API level 24
public void onStarted ()

Called when GNSS system has started.

onStopped

added in API level 24
public void onStopped ()

Called when GNSS system has stopped.