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 |
|
Builder(GnssMeasurementsEvent event)
Constructs a |
Public methods | |
---|---|
GnssMeasurementsEvent
|
build()
Builds a |
GnssMeasurementsEvent.Builder
|
clearIsFullTracking()
Clears the full tracking mode indicator. |
GnssMeasurementsEvent.Builder
|
setClock(GnssClock clock)
Sets the |
GnssMeasurementsEvent.Builder
|
setGnssAutomaticGainControls(Collection<GnssAutomaticGainControl> agcs)
Sets the collection of |
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 |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder ()
Constructs a GnssMeasurementsEvent.Builder
instance.
Builder
public Builder (GnssMeasurementsEvent event)
Constructs a GnssMeasurementsEvent.Builder
instance by copying a
GnssMeasurementsEvent
.
Parameters | |
---|---|
event |
GnssMeasurementsEvent : This value cannot be null . |
Public methods
build
public GnssMeasurementsEvent build ()
Builds a GnssMeasurementsEvent
instance as specified by this builder.
Returns | |
---|---|
GnssMeasurementsEvent |
This value cannot be null . |
clearIsFullTracking
public GnssMeasurementsEvent.Builder clearIsFullTracking ()
Clears the full tracking mode indicator.
Returns | |
---|---|
GnssMeasurementsEvent.Builder |
This value cannot be null . |
setClock
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
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
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
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 . |