# Config.Builder

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/Config.kt+class:androidx.xr.runtime.Config.Builder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
class Config.Builder
```

<br />

*** ** * ** ***

This class can be used to create a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` instance.

Apps can create a default `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` object and then call the appropriate setter methods on the builder to specify any non-default settings. Default settings for each configuration parameter are specified for each setter method. Setters return the builder object so that setter methods can be chained. `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#build()` can be used to create a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the configuration specified in the builder.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#Builder()()` Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance for a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with default values. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#Builder(androidx.xr.runtime.Config)(config: https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config)` Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance with the same configuration settings as the provided `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#build()()` Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the configuration specified in this instance. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setAnchorPersistence(androidx.xr.runtime.AnchorPersistenceMode)(anchorPersistence: https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setAugmentedImageDatabase(androidx.xr.runtime.AugmentedImageDatabase)( augmentedImageDatabase: https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedImageDatabase? )` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedImageDatabase` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setAugmentedObjectCategories(kotlin.collections.Set)( augmentedObjectCategories: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedObjectCategory> )` Sets the augmented object categories this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setDepthEstimation(androidx.xr.runtime.DepthEstimationMode)(depthEstimation: https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setDeviceTracking(androidx.xr.runtime.DeviceTrackingMode)(deviceTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setEyeTracking(androidx.xr.runtime.EyeTrackingMode)(eyeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setFaceTracking(androidx.xr.runtime.FaceTrackingMode)(faceTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setGeospatial(androidx.xr.runtime.GeospatialMode)(geospatial: https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setHandTracking(androidx.xr.runtime.HandTrackingMode)(handTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setPlaneTracking(androidx.xr.runtime.PlaneTrackingMode)(planeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setQrCodeSizeMeters(kotlin.Float)(qrCodeSizeMeters: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the QR code size this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setQrCodeTracking(androidx.xr.runtime.QrCodeTrackingMode)(qrCodeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode)` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | `@https://developer.android.com/reference/kotlin/androidx/xr/runtime/ExperimentalSpatialAnnotationsApi https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder#setSpatialAnnotationTracking(androidx.xr.runtime.SpatialAnnotationTrackingMode)( spatialAnnotationTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode )` Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`. |

## Public constructors

### Builder

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
Builder()
```

Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance for a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with default values.

### Builder

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
Builder(config: Config)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance with the same configuration settings as the provided `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

| Parameters |
|---|---|
| `config: https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` | the configuration for the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance |

## Public functions

### build

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun build(): Config
```

Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the configuration specified in this instance.

### setAnchorPersistence

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setAnchorPersistence(anchorPersistence: AnchorPersistenceMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode#DISABLED()`.

| Parameters |
|---|---|
| `anchorPersistence: https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AnchorPersistenceMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied anchor persistence mode |

### setAugmentedImageDatabase

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setAugmentedImageDatabase(
    augmentedImageDatabase: AugmentedImageDatabase?
): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedImageDatabase` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is null.

| Parameters |
|---|---|
| `augmentedImageDatabase: https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedImageDatabase?` | nullable `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedImageDatabase` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied augmented image database |

### setAugmentedObjectCategories

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setAugmentedObjectCategories(
    augmentedObjectCategories: Set<AugmentedObjectCategory>
): Config.Builder
```

Sets the augmented object categories this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is an empty set.

| Parameters |
|---|---|
| `augmentedObjectCategories: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedObjectCategory>` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedObjectCategory` set to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied `https://developer.android.com/reference/kotlin/androidx/xr/runtime/AugmentedObjectCategory` set |

### setDepthEstimation

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setDepthEstimation(depthEstimation: DepthEstimationMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#DISABLED()`.

| Parameters |
|---|---|
| `depthEstimation: https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied depth estimation mode |

### setDeviceTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setDeviceTracking(deviceTracking: DeviceTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `deviceTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DeviceTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied device tracking mode |

### setEyeTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setEyeTracking(eyeTracking: EyeTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `eyeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied eye tracking mode |

### setFaceTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setFaceTracking(faceTracking: FaceTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `faceTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/FaceTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied face tracking mode |

### setGeospatial

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setGeospatial(geospatial: GeospatialMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode#DISABLED()`.

| Parameters |
|---|---|
| `geospatial: https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/GeospatialMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied geospatial mode |

### setHandTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setHandTracking(handTracking: HandTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `handTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied hand tracking mode |

### setPlaneTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setPlaneTracking(planeTracking: PlaneTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `planeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/PlaneTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied plane tracking mode |

### setQrCodeSizeMeters

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setQrCodeSizeMeters(qrCodeSizeMeters: Float): Config.Builder
```

Sets the QR code size this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is 0.0, indicating that the system should attempt to estimate the QR code size.

| Parameters |
|---|---|
| `qrCodeSizeMeters: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | size of QR code to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied QR code size |

### setQrCodeTracking

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
fun setQrCodeTracking(qrCodeTracking: QrCodeTrackingMode): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `qrCodeTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` value configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied QR code tracking mode |

### setSpatialAnnotationTracking

Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.1.0-alpha02)

```
@ExperimentalSpatialAnnotationsApi
fun setSpatialAnnotationTracking(
    spatialAnnotationTracking: SpatialAnnotationTrackingMode
): Config.Builder
```

Sets the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode` this `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` instance will use to build a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config`.

The default value is `https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode#DISABLED()`.

| Parameters |
|---|---|
| `spatialAnnotationTracking: https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/SpatialAnnotationTrackingMode` value to configure the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/Config` with the supplied spatial annotation tracking mode |