GnssMeasurementsEvent
class GnssMeasurementsEvent : Parcelable
kotlin.Any | |
↳ | android.location.GnssMeasurementsEvent |
A class implementing a container for data associated with a measurement event. Events are delivered to registered instances of Callback
.
Summary
Nested classes | |
---|---|
Builder for |
|
abstract |
Used for receiving GNSS satellite measurements from the GNSS engine. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
GnssClock |
getClock() Gets the GNSS receiver clock information associated with the measurements for the current event. |
MutableCollection<GnssAutomaticGainControl!> |
Gets the collection of |
MutableCollection<GnssMeasurement!> |
Gets the collection of measurements associated with the current event. |
Boolean |
Return |
Boolean |
True indicates that this event was produced while the chipset was in full tracking mode, ie, the GNSS chipset switched off duty cycling. |
String |
toString() |
Unit |
writeToParcel(parcel: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<GnssMeasurementsEvent!> |
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getClock
fun getClock(): GnssClock
Gets the GNSS receiver clock information associated with the measurements for the current event.
Return | |
---|---|
GnssClock |
This value cannot be null . |
getGnssAutomaticGainControls
fun getGnssAutomaticGainControls(): MutableCollection<GnssAutomaticGainControl!>
Gets the collection of GnssAutomaticGainControl
associated with the current event.
Return | |
---|---|
MutableCollection<GnssAutomaticGainControl!> |
This value cannot be null . |
getMeasurements
fun getMeasurements(): MutableCollection<GnssMeasurement!>
Gets the collection of measurements associated with the current event.
Return | |
---|---|
MutableCollection<GnssMeasurement!> |
This value cannot be null . |
hasIsFullTracking
fun hasIsFullTracking(): Boolean
Return true
if isFullTracking()
is available, false
otherwise.
isFullTracking
fun isFullTracking(): Boolean
True indicates that this event was produced while the chipset was in full tracking mode, ie, the GNSS chipset switched off duty cycling. In this mode, no clock discontinuities are expected and, when supported, carrier phase should be continuous in good signal conditions. All non-blocklisted, healthy constellations, satellites and frequency bands that are meaningful to positioning accuracy must be tracked and reported in this mode. False indicates that the GNSS chipset may optimize power via duty cycling, constellations and frequency limits, etc.
The value is only available if hasIsFullTracking()
is true
.
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
parcel: Parcel,
flags: Int
): Unit
Parameters | |
---|---|
dest |
The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |