# GnssCapabilities.Builder

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

# Builder

*** ** * ** ***

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

```
class Builder
```

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

Builder for GnssCapabilities.

## Summary

|                                                                                                                                Public constructors                                                                                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#Builder())`()` <br />                                                                                                                                                        |
| [Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#Builder(android.location.GnssCapabilities))`(`capabilities:` `[GnssCapabilities](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities)`)` <br /> |

|                                                                                                                                                                                                                                                                                                               Public methods                                                                                                                                                                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GnssCapabilities](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities)                  | [build](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#build())`()` Builds a new GnssCapabilities.                                                                                                                                                                                                                                                                                                                                                                         |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setGnssSignalTypes](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setGnssSignalTypes(kotlin.collections.MutableList))`(`gnssSignalTypes:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[GnssSignalType](https://developer.android.com/reference/kotlin/android/location/GnssSignalType)!>`)` Sets a list of[GnssSignalType](https://developer.android.com/reference/kotlin/android/location/GnssSignalType). |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasAccumulatedDeltaRange](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasAccumulatedDeltaRange(kotlin.Int))`(`capable:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets accumulated delta range capability.                                                                                                                                                                                                                  |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasAntennaInfo](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasAntennaInfo(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets antenna info capability.                                                                                                                                                                                                                                     |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasGeofencing](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasGeofencing(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets geofencing capability.                                                                                                                                                                                                                                         |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasLowPowerMode](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasLowPowerMode(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets low power mode capability.                                                                                                                                                                                                                                 |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrections](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrections(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurement corrections capability.                                                                                                                                                                                                    |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrectionsExcessPathLength](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrectionsExcessPathLength(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurement corrections excess path length capability.                                                                                                                                                 |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrectionsForDriving](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrectionsForDriving(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurement corrections for driving capability.                                                                                                                                                                    |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrectionsLosSats](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrectionsLosSats(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurement corrections line-of-sight satellites capability.                                                                                                                                                             |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrectionsReflectingPlane](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrectionsReflectingPlane(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurement corrections reflecting plane capability.                                                                                                                                                     |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurementCorrelationVectors](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurementCorrelationVectors(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets correlation vector capability.                                                                                                                                                                                           |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMeasurements](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMeasurements(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets measurements capability.                                                                                                                                                                                                                                   |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMsa](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMsa(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets Mobile Station Assisted capability.                                                                                                                                                                                                                                          |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasMsb](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasMsb(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets Mobile Station Based capability.                                                                                                                                                                                                                                             |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasNavigationMessages](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasNavigationMessages(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets navigation messages capability.                                                                                                                                                                                                                |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasOnDemandTime](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasOnDemandTime(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets on demand time capability.                                                                                                                                                                                                                                 |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerMultibandAcquisition](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerMultibandAcquisition(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets power multi-band acquisition capability.                                                                                                                                                                                         |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerMultibandTracking](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerMultibandTracking(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets power multi-band tracking capability.                                                                                                                                                                                                  |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerOtherModes](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerOtherModes(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets OEM-defined power modes capability.                                                                                                                                                                                                                  |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerSinglebandAcquisition](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerSinglebandAcquisition(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets power single-band acquisition capability.                                                                                                                                                                                      |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerSinglebandTracking](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerSinglebandTracking(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets power single-band tracking capability.                                                                                                                                                                                               |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasPowerTotal](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasPowerTotal(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets power totals capability.                                                                                                                                                                                                                                       |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasSatelliteBlocklist](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasSatelliteBlocklist(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets satellite blocklist capability.                                                                                                                                                                                                                |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasSatellitePvt](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasSatellitePvt(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets satellite PVT capability.                                                                                                                                                                                                                                  |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasScheduling](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasScheduling(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets scheduling capability.                                                                                                                                                                                                                                         |
| [GnssCapabilities.Builder](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#) | [setHasSingleShotFix](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities.Builder#setHasSingleShotFix(kotlin.Boolean))`(`capable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets single shot locating capability.                                                                                                                                                                                                                         |

## Public constructors

### Builder

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

```
Builder()
```  

### Builder

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

```
Builder(capabilities: GnssCapabilities)
```

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

## Public methods

### build

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

```
fun build(): GnssCapabilities
```

Builds a new GnssCapabilities.

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

### setGnssSignalTypes

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

```
fun setGnssSignalTypes(gnssSignalTypes: MutableList<GnssSignalType!>): GnssCapabilities.Builder
```

Sets a list of[GnssSignalType](https://developer.android.com/reference/kotlin/android/location/GnssSignalType).

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

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

### setHasAccumulatedDeltaRange

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

```
fun setHasAccumulatedDeltaRange(capable: Int): GnssCapabilities.Builder
```

Sets accumulated delta range capability.

|                                                                                                                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                                                                                                                            ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `capable` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Value is either`0`or a combination of[android.location.GnssCapabilities#CAPABILITY_UNKNOWN](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities#CAPABILITY_UNKNOWN:kotlin.Int),[android.location.GnssCapabilities#CAPABILITY_SUPPORTED](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities#CAPABILITY_SUPPORTED:kotlin.Int), and[android.location.GnssCapabilities#CAPABILITY_UNSUPPORTED](https://developer.android.com/reference/kotlin/android/location/GnssCapabilities#CAPABILITY_UNSUPPORTED:kotlin.Int) |

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

### setHasAntennaInfo

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

```
fun setHasAntennaInfo(capable: Boolean): GnssCapabilities.Builder
```

Sets antenna info capability.

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

### setHasGeofencing

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

```
fun setHasGeofencing(capable: Boolean): GnssCapabilities.Builder
```

Sets geofencing capability.

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

### setHasLowPowerMode

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

```
fun setHasLowPowerMode(capable: Boolean): GnssCapabilities.Builder
```

Sets low power mode capability.

The low power mode is defined in GNSS HAL. When the low power mode is active, the GNSS hardware must make strong tradeoffs to substantially restrict power use.

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

### setHasMeasurementCorrections

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

```
fun setHasMeasurementCorrections(capable: Boolean): GnssCapabilities.Builder
```

Sets measurement corrections capability.

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

### setHasMeasurementCorrectionsExcessPathLength

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

```
fun setHasMeasurementCorrectionsExcessPathLength(capable: Boolean): GnssCapabilities.Builder
```

Sets measurement corrections excess path length capability.

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

### setHasMeasurementCorrectionsForDriving

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

```
fun setHasMeasurementCorrectionsForDriving(capable: Boolean): GnssCapabilities.Builder
```

Sets measurement corrections for driving capability.

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

### setHasMeasurementCorrectionsLosSats

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

```
fun setHasMeasurementCorrectionsLosSats(capable: Boolean): GnssCapabilities.Builder
```

Sets measurement corrections line-of-sight satellites capability.

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

### setHasMeasurementCorrectionsReflectingPlane

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

```
fun setHasMeasurementCorrectionsReflectingPlane(capable: Boolean): GnssCapabilities.Builder
```

Sets measurement corrections reflecting plane capability.

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

### setHasMeasurementCorrelationVectors

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

```
fun setHasMeasurementCorrelationVectors(capable: Boolean): GnssCapabilities.Builder
```

Sets correlation vector capability.

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

### setHasMeasurements

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

```
fun setHasMeasurements(capable: Boolean): GnssCapabilities.Builder
```

Sets measurements capability.

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

### setHasMsa

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

```
fun setHasMsa(capable: Boolean): GnssCapabilities.Builder
```

Sets Mobile Station Assisted capability.

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

### setHasMsb

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

```
fun setHasMsb(capable: Boolean): GnssCapabilities.Builder
```

Sets Mobile Station Based capability.

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

### setHasNavigationMessages

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

```
fun setHasNavigationMessages(capable: Boolean): GnssCapabilities.Builder
```

Sets navigation messages capability.

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

### setHasOnDemandTime

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

```
fun setHasOnDemandTime(capable: Boolean): GnssCapabilities.Builder
```

Sets on demand time capability.

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

### setHasPowerMultibandAcquisition

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

```
fun setHasPowerMultibandAcquisition(capable: Boolean): GnssCapabilities.Builder
```

Sets power multi-band acquisition capability.

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

### setHasPowerMultibandTracking

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

```
fun setHasPowerMultibandTracking(capable: Boolean): GnssCapabilities.Builder
```

Sets power multi-band tracking capability.

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

### setHasPowerOtherModes

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

```
fun setHasPowerOtherModes(capable: Boolean): GnssCapabilities.Builder
```

Sets OEM-defined power modes capability.

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

### setHasPowerSinglebandAcquisition

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

```
fun setHasPowerSinglebandAcquisition(capable: Boolean): GnssCapabilities.Builder
```

Sets power single-band acquisition capability.

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

### setHasPowerSinglebandTracking

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

```
fun setHasPowerSinglebandTracking(capable: Boolean): GnssCapabilities.Builder
```

Sets power single-band tracking capability.

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

### setHasPowerTotal

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

```
fun setHasPowerTotal(capable: Boolean): GnssCapabilities.Builder
```

Sets power totals capability.

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

### setHasSatelliteBlocklist

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

```
fun setHasSatelliteBlocklist(capable: Boolean): GnssCapabilities.Builder
```

Sets satellite blocklist capability.

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

### setHasSatellitePvt

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

```
fun setHasSatellitePvt(capable: Boolean): GnssCapabilities.Builder
```

Sets satellite PVT capability.

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

### setHasScheduling

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

```
fun setHasScheduling(capable: Boolean): GnssCapabilities.Builder
```

Sets scheduling capability.

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

### setHasSingleShotFix

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

```
fun setHasSingleShotFix(capable: Boolean): GnssCapabilities.Builder
```

Sets single shot locating capability.

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