Added in API level 24
Callback
abstract class Callback
| kotlin.Any | |
| ↳ | android.location.GnssStatus.Callback |
Used for receiving notifications when GNSS events happen.
Summary
| Public constructors | |
|---|---|
Callback() |
|
| Public methods | |
|---|---|
| open Unit |
onFirstFix(ttffMillis: Int)Called when the GNSS system has received its first fix since starting. |
| open Unit |
onSatelliteStatusChanged(status: GnssStatus)Called periodically to report GNSS satellite status. |
| open Unit |
Called when GNSS system has started. |
| open Unit |
Called when GNSS system has stopped. |
Public constructors
Public methods
onFirstFix
Added in API level 24
open fun onFirstFix(ttffMillis: Int): Unit
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
open fun onSatelliteStatusChanged(status: GnssStatus): Unit
Called periodically to report GNSS satellite status.
| Parameters | |
|---|---|
status |
GnssStatus: the current status of all satellites. This value cannot be null. |