Added in API level 33

Builder


class Builder
kotlin.Any
   ↳ android.location.GnssMeasurementsEvent.Builder

Builder for GnssMeasurementsEvent

Summary

Public constructors

Constructs a GnssMeasurementsEvent.Builder instance.

Constructs a GnssMeasurementsEvent.Builder instance by copying a GnssMeasurementsEvent.

Public methods
GnssMeasurementsEvent

Builds a GnssMeasurementsEvent instance as specified by this builder.

GnssMeasurementsEvent.Builder

Clears the full tracking mode indicator.

GnssMeasurementsEvent.Builder

Sets the GnssClock.

GnssMeasurementsEvent.Builder

Sets the collection of GnssAutomaticGainControl.

GnssMeasurementsEvent.Builder
setIsFullTracking(isFullTracking: Boolean)

Sets whether the GNSS chipset was in the full tracking mode at the time this event was produced.

GnssMeasurementsEvent.Builder

Sets the collection of GnssMeasurement.

Public constructors

Builder

Added in API level 33
Builder()

Constructs a GnssMeasurementsEvent.Builder instance.

Builder

Added in API level 33
Builder(event: GnssMeasurementsEvent)

Constructs a GnssMeasurementsEvent.Builder instance by copying a GnssMeasurementsEvent.

Parameters
event GnssMeasurementsEvent: This value cannot be null.

Public methods

build

Added in API level 33
fun build(): GnssMeasurementsEvent

Builds a GnssMeasurementsEvent instance as specified by this builder.

Return
GnssMeasurementsEvent This value cannot be null.

clearIsFullTracking

Added in API level 34
fun clearIsFullTracking(): GnssMeasurementsEvent.Builder

Clears the full tracking mode indicator.

Return
GnssMeasurementsEvent.Builder This value cannot be null.

setClock

Added in API level 33
fun setClock(clock: GnssClock): GnssMeasurementsEvent.Builder

Sets the GnssClock.

Parameters
clock GnssClock: This value cannot be null.
Return
GnssMeasurementsEvent.Builder This value cannot be null.

setGnssAutomaticGainControls

Added in API level 33
fun setGnssAutomaticGainControls(agcs: MutableCollection<GnssAutomaticGainControl!>): GnssMeasurementsEvent.Builder

Sets the collection of GnssAutomaticGainControl.

Parameters
agcs MutableCollection<GnssAutomaticGainControl!>: This value cannot be null.
Return
GnssMeasurementsEvent.Builder This value cannot be null.

setIsFullTracking

Added in API level 34
fun setIsFullTracking(isFullTracking: Boolean): GnssMeasurementsEvent.Builder

Sets whether the GNSS chipset was in the full tracking mode at the time this event was produced. 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.

Return
GnssMeasurementsEvent.Builder This value cannot be null.

setMeasurements

Added in API level 33
fun setMeasurements(measurements: MutableCollection<GnssMeasurement!>): GnssMeasurementsEvent.Builder

Sets the collection of GnssMeasurement.

Parameters
measurements MutableCollection<GnssMeasurement!>: This value cannot be null.
Return
GnssMeasurementsEvent.Builder This value cannot be null.