# GnssMeasurementsEvent.Builder

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

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.Builder "View this page in Java")  

```
class Builder
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                   ||
| ↳ | [android.location.GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) |

Builder for[GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent)

## Summary

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

|                                                                                                                                                                                                                                                                                                                                                            Public methods                                                                                                                                                                                                                                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent)                  | [build](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#build())`()` Builds a[GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent)instance as specified by this builder.                                                                                                                                                                                                                                                                                                                      |
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | [clearIsFullTracking](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#clearIsFullTracking())`()` Clears the full tracking mode indicator.                                                                                                                                                                                                                                                                                                                                                                                                              |
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | [setClock](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#setClock(android.location.GnssClock))`(`clock:` `[GnssClock](https://developer.android.com/reference/kotlin/android/location/GnssClock)`)` Sets the[GnssClock](https://developer.android.com/reference/kotlin/android/location/GnssClock).                                                                                                                                                                                                                                                  |
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | [setGnssAutomaticGainControls](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#setGnssAutomaticGainControls(kotlin.collections.MutableCollection))`(`agcs:` `[MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)<[GnssAutomaticGainControl](https://developer.android.com/reference/kotlin/android/location/GnssAutomaticGainControl)!>`)` Sets the collection of[GnssAutomaticGainControl](https://developer.android.com/reference/kotlin/android/location/GnssAutomaticGainControl). |
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | [setIsFullTracking](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#setIsFullTracking(kotlin.Boolean))`(`isFullTracking:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the GNSS chipset was in the full tracking mode at the time this event was produced.                                                                                                                                                                                                                                      |
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | [setMeasurements](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#setMeasurements(kotlin.collections.MutableCollection))`(`measurements:` `[MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)<[GnssMeasurement](https://developer.android.com/reference/kotlin/android/location/GnssMeasurement)!>`)` Sets the collection of[GnssMeasurement](https://developer.android.com/reference/kotlin/android/location/GnssMeasurement).                                                       |

## Public constructors

### Builder

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

```
Builder()
```

Constructs a[GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#)instance.  

### Builder

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

```
Builder(event: GnssMeasurementsEvent)
```

Constructs a[GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#)instance by copying a[GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent).

|                                                                     Parameters                                                                      ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------|
| `event` | [GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent):This value cannot be`null`. |

## Public methods

### build

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

```
fun build(): GnssMeasurementsEvent
```

Builds a[GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent)instance as specified by this builder.

|                                                                   Return                                                                    ||
|----------------------------------------------------------------------------------------------------------------|-----------------------------|
| [GnssMeasurementsEvent](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent) | This value cannot be`null`. |

### clearIsFullTracking

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

```
fun clearIsFullTracking(): GnssMeasurementsEvent.Builder
```

Clears the full tracking mode indicator.

|                                                                            Return                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | This value cannot be`null`. |

### setClock

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

```
fun setClock(clock: GnssClock): GnssMeasurementsEvent.Builder
```

Sets the[GnssClock](https://developer.android.com/reference/kotlin/android/location/GnssClock).

|                                                         Parameters                                                          ||
|---------|--------------------------------------------------------------------------------------------------------------------|
| `clock` | [GnssClock](https://developer.android.com/reference/kotlin/android/location/GnssClock):This value cannot be`null`. |

|                                                                            Return                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | This value cannot be`null`. |

### setGnssAutomaticGainControls

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

```
fun setGnssAutomaticGainControls(agcs: MutableCollection<GnssAutomaticGainControl!>): GnssMeasurementsEvent.Builder
```

Sets the collection of[GnssAutomaticGainControl](https://developer.android.com/reference/kotlin/android/location/GnssAutomaticGainControl).

|                                                                                                                                    Parameters                                                                                                                                    ||
|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `agcs` | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\<[GnssAutomaticGainControl](https://developer.android.com/reference/kotlin/android/location/GnssAutomaticGainControl)!\>:This value cannot be`null`. |

|                                                                            Return                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | This value cannot be`null`. |

### setIsFullTracking

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

```
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](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | This value cannot be`null`. |

### setMeasurements

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

```
fun setMeasurements(measurements: MutableCollection<GnssMeasurement!>): GnssMeasurementsEvent.Builder
```

Sets the collection of[GnssMeasurement](https://developer.android.com/reference/kotlin/android/location/GnssMeasurement).

|                                                                                                                               Parameters                                                                                                                               ||
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `measurements` | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\<[GnssMeasurement](https://developer.android.com/reference/kotlin/android/location/GnssMeasurement)!\>:This value cannot be`null`. |

|                                                                            Return                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [GnssMeasurementsEvent.Builder](https://developer.android.com/reference/kotlin/android/location/GnssMeasurementsEvent.Builder#) | This value cannot be`null`. |