Summary: Ctors | Methods | Inherited Methods
public
static
abstract
class
GnssStatus.Callback
extends Object
Used for receiving notifications when GNSS events happen.
Summary
Public constructors | |
|---|---|
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 | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
Public constructors
Callback
public Callback ()
Public methods
onFirstFix
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
public void onSatelliteStatusChanged (GnssStatus status)
Called periodically to report GNSS satellite status.
| Parameters | |
|---|---|
status |
GnssStatus: the current status of all satellites.
This value cannot be null. |
onStarted
public void onStarted ()
Called when GNSS system has started.
onStopped
public void onStopped ()
Called when GNSS system has stopped.