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

*** ** * ** ***


```
public final class HandTrackingMode
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode#BOTH()` Both the left and right hands will be tracked. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode#DISABLED()` Hands will not be tracked. |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode#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/HandTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/HandTrackingMode` for debugging. |

## Public fields

### BOTH

```
public static final @NonNull HandTrackingMode BOTH
```

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

### DISABLED

```
public static final @NonNull HandTrackingMode DISABLED
```

Hands will not be tracked.

## Public methods

### getMode

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

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

### toString

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

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

Note: Not intended for production use.