Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#inhmethods)

# GnssMeasurementsEvent.Builder

*** ** * ** ***


`
public
static
final

class
GnssMeasurementsEvent.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.location.GnssMeasurementsEvent.Builder |

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/android/location/GnssMeasurementsEvent`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#Builder()() ` Constructs a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` instance. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#Builder(android.location.GnssMeasurementsEvent)(https://developer.android.com/reference/android/location/GnssMeasurementsEvent event) ` Constructs a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` instance by copying a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent`. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#build()() ` Builds a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent` instance as specified by this builder. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#clearIsFullTracking()() ` Clears the full tracking mode indicator. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#setClock(android.location.GnssClock)(https://developer.android.com/reference/android/location/GnssClock clock) ` Sets the `https://developer.android.com/reference/android/location/GnssClock`. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#setGnssAutomaticGainControls(java.util.Collection<android.location.GnssAutomaticGainControl>)(https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/android/location/GnssAutomaticGainControl> agcs) ` Sets the collection of `https://developer.android.com/reference/android/location/GnssAutomaticGainControl`. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#setIsFullTracking(boolean)(boolean isFullTracking) ` Sets whether the GNSS chipset was in the full tracking mode at the time this event was produced. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder#setMeasurements(java.util.Collection<android.location.GnssMeasurement>)(https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/android/location/GnssMeasurement> measurements) ` Sets the collection of `https://developer.android.com/reference/android/location/GnssMeasurement`. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### Builder

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder ()
```

Constructs a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` instance.

<br />

### Builder

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder (GnssMeasurementsEvent event)
```

Constructs a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` instance by copying a
`https://developer.android.com/reference/android/location/GnssMeasurementsEvent`.

<br />

| Parameters ||
|---|---|
| `event` | `GnssMeasurementsEvent`: This value cannot be `null`. <br /> |

## Public methods

### build

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public GnssMeasurementsEvent build ()
```

Builds a `https://developer.android.com/reference/android/location/GnssMeasurementsEvent` instance as specified by this builder.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent` | This value cannot be `null`. <br /> |

### clearIsFullTracking

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public GnssMeasurementsEvent.Builder clearIsFullTracking ()
```

Clears the full tracking mode indicator.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | This value cannot be `null`. <br /> |

### setClock

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public GnssMeasurementsEvent.Builder setClock (GnssClock clock)
```

Sets the `https://developer.android.com/reference/android/location/GnssClock`.

<br />

| Parameters ||
|---|---|
| `clock` | `GnssClock`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | This value cannot be `null`. <br /> |

### setGnssAutomaticGainControls

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public GnssMeasurementsEvent.Builder setGnssAutomaticGainControls (Collection<GnssAutomaticGainControl> agcs)
```

Sets the collection of `https://developer.android.com/reference/android/location/GnssAutomaticGainControl`.

<br />

| Parameters ||
|---|---|
| `agcs` | `Collection`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | This value cannot be `null`. <br /> |

### setIsFullTracking

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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.

<br />

| Parameters ||
|---|---|
| `isFullTracking` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | This value cannot be `null`. <br /> |

### setMeasurements

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public GnssMeasurementsEvent.Builder setMeasurements (Collection<GnssMeasurement> measurements)
```

Sets the collection of `https://developer.android.com/reference/android/location/GnssMeasurement`.

<br />

| Parameters ||
|---|---|
| `measurements` | `Collection`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder` | This value cannot be `null`. <br /> |