# 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](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
public final class QrCodeTrackingMode
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/QrCodeTrackingMode#getMode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/QrCodeTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/QrCodeTrackingMode` for debugging. |

## Public fields

### DISABLED

```
public static final @NonNull QrCodeTrackingMode DISABLED
```

QR codes will not be tracked.

### DYNAMIC

```
public static final @NonNull QrCodeTrackingMode DYNAMIC
```

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/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_COARSE()`

### STATIC

```
public static final @NonNull QrCodeTrackingMode STATIC
```

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/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_COARSE()`

## Public methods

### getMode

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

```
public final int getMode()
```

### toString

```
public @NonNull String toString()
```

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

Note: Not intended for production use.