Added in API level 24

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 GnssMeasurementsEvent

abstract

Used for receiving GNSS satellite measurements from the GNSS engine.

Inherited constants
Public methods
Int

GnssClock

Gets the GNSS receiver clock information associated with the measurements for the current event.

MutableCollection<GnssAutomaticGainControl!>

Gets the collection of GnssAutomaticGainControl associated with the current event.

MutableCollection<GnssMeasurement!>

Gets the collection of measurements associated with the current event.

Boolean

Return true if isFullTracking() is available, false otherwise.

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

Unit
writeToParcel(parcel: Parcel, flags: Int)

Properties
static Parcelable.Creator<GnssMeasurementsEvent!>

Public methods

describeContents

Added in API level 24
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

Added in API level 24
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

Added in API level 33
fun getGnssAutomaticGainControls(): MutableCollection<GnssAutomaticGainControl!>

Gets the collection of GnssAutomaticGainControl associated with the current event.

Return
MutableCollection<GnssAutomaticGainControl!> This value cannot be null.

getMeasurements

Added in API level 24
fun getMeasurements(): MutableCollection<GnssMeasurement!>

Gets the collection of measurements associated with the current event.

Return
MutableCollection<GnssMeasurement!> This value cannot be null.

hasIsFullTracking

Added in API level 34
fun hasIsFullTracking(): Boolean

Return true if isFullTracking() is available, false otherwise.

isFullTracking

Added in API level 34
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

Added in API level 24
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 24
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

Properties

CREATOR

Added in API level 24
static val CREATOR: Parcelable.Creator<GnssMeasurementsEvent!>