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/GnssAutomaticGainControl.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#inhmethods)

# GnssAutomaticGainControl.Builder

*** ** * ** ***

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

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

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl` | ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#build()() ` Builds a `https://developer.android.com/reference/android/location/GnssAutomaticGainControl` instance as specified by this builder. |
| ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder` | ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#setCarrierFrequencyHz(long)(long carrierFrequencyHz) ` Sets the Carrier frequency in Hz. |
| ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder` | ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#setConstellationType(int)(int constellationType) ` Sets the constellation type. |
| ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder` | ` https://developer.android.com/reference/android/location/GnssAutomaticGainControl.Builder#setLevelDb(double)(double levelDb) ` Sets the Automatic Gain Control level in dB. |

### 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/GnssAutomaticGainControl.Builder` instance.

<br />

### Builder

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

```
public Builder (GnssAutomaticGainControl agc)
```

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

<br />

| Parameters ||
|---|---|
| `agc` | `GnssAutomaticGainControl`: 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 GnssAutomaticGainControl build ()
```

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

<br />

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

### setCarrierFrequencyHz

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

```
public GnssAutomaticGainControl.Builder setCarrierFrequencyHz (long carrierFrequencyHz)
```

Sets the Carrier frequency in Hz.

<br />

| Parameters ||
|---|---|
| `carrierFrequencyHz` | `long`: Value is 0 or greater <br /> |

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

### setConstellationType

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

```
public GnssAutomaticGainControl.Builder setConstellationType (int constellationType)
```

Sets the constellation type.

<br />

| Parameters ||
|---|---|
| `constellationType` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_UNKNOWN` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GPS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_SBAS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GLONASS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_QZSS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_BEIDOU` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GALILEO` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_IRNSS` |

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

### setLevelDb

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

```
public GnssAutomaticGainControl.Builder setLevelDb (double levelDb)
```

Sets the Automatic Gain Control level in dB.

<br />

| Parameters ||
|---|---|
| `levelDb` | `double`: Value is between -10000.0f and 10000.0f inclusive <br /> |

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