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

Public methods
open Unit
onFirstFix(ttffMillis: Int)

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

open Unit

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

Callback

Added in API level 24
Callback()

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.

onStarted

Added in API level 24
open fun onStarted(): Unit

Called when GNSS system has started.

onStopped

Added in API level 24
open fun onStopped(): Unit

Called when GNSS system has stopped.