GnssMeasurementsEvent.Builder


public static final class GnssMeasurementsEvent.Builder
extends Object

java.lang.Object
   ↳ android.location.GnssMeasurementsEvent.Builder


Builder for GnssMeasurementsEvent

Summary

Public constructors

Builder()

Constructs a GnssMeasurementsEvent.Builder instance.

Builder(GnssMeasurementsEvent event)

Constructs a GnssMeasurementsEvent.Builder instance by copying a GnssMeasurementsEvent.

Public methods

GnssMeasurementsEvent build()

Builds a GnssMeasurementsEvent instance as specified by this builder.

GnssMeasurementsEvent.Builder clearIsFullTracking()

Clears the full tracking mode indicator.

GnssMeasurementsEvent.Builder setClock(GnssClock clock)

Sets the GnssClock.

GnssMeasurementsEvent.Builder setGnssAutomaticGainControls(Collection<GnssAutomaticGainControl> agcs)

Sets the collection of GnssAutomaticGainControl.

GnssMeasurementsEvent.Builder setIsFullTracking(boolean isFullTracking)

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

GnssMeasurementsEvent.Builder setMeasurements(Collection<GnssMeasurement> measurements)

Sets the collection of GnssMeasurement.

Inherited methods

Public constructors

Builder

Added in API level 33
public Builder ()

Constructs a GnssMeasurementsEvent.Builder instance.

Builder

Added in API level 33
public Builder (GnssMeasurementsEvent event)

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
public GnssMeasurementsEvent build ()

Builds a GnssMeasurementsEvent instance as specified by this builder.

Returns
GnssMeasurementsEvent This value cannot be null.

clearIsFullTracking

Added in API level 34
public GnssMeasurementsEvent.Builder clearIsFullTracking ()

Clears the full tracking mode indicator.

Returns
GnssMeasurementsEvent.Builder This value cannot be null.

setClock

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

Sets the GnssClock.

Parameters
clock GnssClock: This value cannot be null.

Returns
GnssMeasurementsEvent.Builder This value cannot be null.

setGnssAutomaticGainControls

Added in API level 33
public GnssMeasurementsEvent.Builder setGnssAutomaticGainControls (Collection<GnssAutomaticGainControl> agcs)

Sets the collection of GnssAutomaticGainControl.

Parameters
agcs Collection: This value cannot be null.

Returns
GnssMeasurementsEvent.Builder This value cannot be null.

setIsFullTracking

Added in API level 34
public GnssMeasurementsEvent.Builder setIsFullTracking (boolean isFullTracking)

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.

Parameters
isFullTracking boolean

Returns
GnssMeasurementsEvent.Builder This value cannot be null.

setMeasurements

Added in API level 33
public GnssMeasurementsEvent.Builder setMeasurements (Collection<GnssMeasurement> measurements)

Sets the collection of GnssMeasurement.

Parameters
measurements Collection: This value cannot be null.

Returns
GnssMeasurementsEvent.Builder This value cannot be null.