# QrCodeTrackingMode

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/XrCapabilities.kt+class:androidx.xr.runtime.QrCodeTrackingMode) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

*** ** * ** ***


```
class QrCodeTrackingMode
```

<br />

*** ** * ** ***

Feature that allows tracking of and provides information about QR codes.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#DISABLED()` QR codes will not be tracked. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#DYNAMIC()` Used for tracking moving QR codes. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#STATIC()` Used for tracking QR codes that are known to be static or semi-static. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode#mode()` |

## Public companion properties

### DISABLED

```
val DISABLED: QrCodeTrackingMode
```

QR codes will not be tracked.

### DYNAMIC

```
val DYNAMIC: QrCodeTrackingMode
```

Used for tracking moving QR codes. It has the highest accuracy, the lowest latency and the highest power consumption.

Supported runtimes:

- OpenXR

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_COARSE()`

### STATIC

```
val STATIC: QrCodeTrackingMode
```

Used for tracking QR codes that are known to be static or semi-static. It has less power consumption in comparison to dynamic mode. If a static QR code is moving, it will be updated with a much higher latency.

Supported runtimes:

- OpenXR

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_COARSE()`

## Public functions

### toString

```
open fun toString(): String
```

Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/QrCodeTrackingMode` for debugging.

Note: Not intended for production use.

## Public properties

### mode

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

```
val mode: Int
```