# 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)

*** ** * ** ***


```
public final class Config.Builder
```

<br />

*** ** * ** ***

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

Apps can create a default `https://developer.android.com/reference/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/androidx/xr/runtime/Config.Builder#build()` can be used to create a `https://developer.android.com/reference/androidx/xr/runtime/Config` with the configuration specified in the builder.

## Summary

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

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

## Public constructors

### Builder

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

```
public Builder()
```

Creates a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` instance for a `https://developer.android.com/reference/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)

```
public Builder(@NonNull Config config)
```

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

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

## Public methods

### build

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

```
public final @NonNull Config build()
```

Creates a new instance of `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setAnchorPersistence(@NonNull AnchorPersistenceMode anchorPersistence)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setAugmentedImageDatabase(
    AugmentedImageDatabase augmentedImageDatabase
)
```

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

The default value is null.

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setAugmentedObjectCategories(
    @NonNull Set<@NonNull AugmentedObjectCategory> augmentedObjectCategories
)
```

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

The default value is an empty set.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory> augmentedObjectCategories` | `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` set to configure the `https://developer.android.com/reference/androidx/xr/runtime/Session` |

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

### setDepthEstimation

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

```
public final @NonNull Config.Builder setDepthEstimation(@NonNull DepthEstimationMode depthEstimation)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setDeviceTracking(@NonNull DeviceTrackingMode deviceTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setEyeTracking(@NonNull EyeTrackingMode eyeTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setFaceTracking(@NonNull FaceTrackingMode faceTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setGeospatial(@NonNull GeospatialMode geospatial)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setHandTracking(@NonNull HandTrackingMode handTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setPlaneTracking(@NonNull PlaneTrackingMode planeTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setQrCodeSizeMeters(float qrCodeSizeMeters)
```

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

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

| Parameters |
|---|---|
| `float qrCodeSizeMeters` | size of QR code to configure the `https://developer.android.com/reference/androidx/xr/runtime/Session` |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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)

```
public final @NonNull Config.Builder setQrCodeTracking(@NonNull QrCodeTrackingMode qrCodeTracking)
```

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

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` | a `https://developer.android.com/reference/androidx/xr/runtime/Config.Builder` that builds a `https://developer.android.com/reference/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
public final @NonNull Config.Builder setSpatialAnnotationTracking(
    @NonNull SpatialAnnotationTrackingMode spatialAnnotationTracking
)
```

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

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

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

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