public static abstract class GnssStatus.Callback extends Object
| java.lang.Object | |
| ↳ | android.location.GnssStatus.Callback |
Used for receiving notifications when GNSS events happen.
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 | |
|---|---|
java.lang.Object | |
added in API level 24
GnssStatus.Callback ()
added in API level 24
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. |
added in API level 24
void onSatelliteStatusChanged (GnssStatus status)
Called periodically to report GNSS satellite status.
| Parameters | |
|---|---|
status | GnssStatus: the current status of all satellites. |
added in API level 24
void onStarted ()
Called when GNSS system has started.
added in API level 24
void onStopped ()
Called when GNSS system has stopped.
尚无评论!