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

# GnssMeasurementRequest.Builder

*** ** * ** ***

` public static final class GnssMeasurementRequest.Builder `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

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

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/location/GnssMeasurementRequest` | ` https://developer.android.com/reference/android/location/GnssMeasurementRequest.Builder#build()() ` Builds a `https://developer.android.com/reference/android/location/GnssMeasurementRequest` instance as specified by this builder. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementRequest.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementRequest.Builder#setFullTracking(boolean)(boolean value) ` Set the value of whether to enable full GNSS tracking, which is false by default. |
| ` https://developer.android.com/reference/android/location/GnssMeasurementRequest.Builder` | ` https://developer.android.com/reference/android/location/GnssMeasurementRequest.Builder#setIntervalMillis(int)(int value) ` Set the time interval between the reported measurements in milliseconds, which is 0 by default. |

### 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 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder ()
```

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

<br />

### Builder

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

```
public Builder (GnssMeasurementRequest request)
```

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

<br />

| Parameters ||
|---|---|
| `request` | `GnssMeasurementRequest`: This value cannot be `null`. <br /> |

## Public methods

### build

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

```
public GnssMeasurementRequest build ()
```

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

<br />

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

### setFullTracking

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

```
public GnssMeasurementRequest.Builder setFullTracking (boolean value)
```

Set the value of whether to enable full GNSS tracking, which is false by default.

If true, GNSS chipset switches off duty cycling. In such a 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 the chipset supports must be reported in this mode. The GNSS chipset will consume more power in full tracking mode than in duty cycling mode. If false, GNSS chipset optimizes power via duty cycling, constellations and frequency limits, etc.

Full GNSS tracking mode affects GnssMeasurement and other GNSS functionalities including GNSS location.

Full tracking requests always override non-full tracking requests. If any full tracking request occurs, all listeners on the device will receive full tracking GNSS measurements.

<br />

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

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

### setIntervalMillis

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

```
public GnssMeasurementRequest.Builder setIntervalMillis (int value)
```

Set the time interval between the reported measurements in milliseconds, which is 0 by default. The request interval may be set to `https://developer.android.com/reference/android/location/GnssMeasurementRequest#PASSIVE_INTERVAL` which indicates this request will not actively generate GNSS measurement updates, but may receive GNSS measurement updates generated as a result of other GNSS measurement requests.

An interval of 0 milliseconds means the fastest rate the chipset can report.

The GNSS chipset may report measurements with a rate faster than requested.

Note that on Android T, a request interval of `https://developer.android.com/reference/android/location/GnssMeasurementRequest#PASSIVE_INTERVAL` will first trigger one GNSS measurement. Another GNSS measurement will be triggered after `https://developer.android.com/reference/android/location/GnssMeasurementRequest#PASSIVE_INTERVAL` milliseconds and so on.

<br />

| Parameters ||
|---|---|
| `value` | `int`: Value is 0 or greater <br /> |

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