# HandTrackingMode

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

*** ** * ** ***


```
class HandTrackingMode
```

<br />

*** ** * ** ***

Feature that allows tracking of the user's hands and hand joints.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode#BOTH()` Both the left and right hands will be tracked. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/HandTrackingMode#DISABLED()` Hands will not be tracked. |

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

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

## Public companion properties

### BOTH

```
val BOTH: HandTrackingMode
```

Both the left and right hands will be tracked. Note that setting this mode will consume additional runtime resources.

Supported runtimes:

- OpenXR

Required permissions:

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

### DISABLED

```
val DISABLED: HandTrackingMode
```

Hands will not be tracked.

## Public functions

### toString

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

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

Note: Not intended for production use.

## Public properties

### mode

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

```
val mode: Int
```