# Hand.State

Artifact: [androidx.xr.arcore:arcore](https://developer.android.com/jetpack/androidx/releases/xr-arcore) [View Source](https://cs.android.com/search?q=file:androidx/xr/arcore/Hand.kt+class:androidx.xr.arcore.Hand.State) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


```
class Hand.State : Trackable.State
```

<br />

*** ** * ** ***

The representation of the current state of a `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand`.

The state consists of an array of 182 floats (26 joints \* 7 values per joint) which represent the poses of all hand joints. Each hand joint pose consists of 7 float values that represent rotation (x, y, z, w) and translation (x, y, z) as defined in `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` and `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` respectively. The order of the joints within the array follows the order in which the joints are defined in `https://developer.android.com/reference/kotlin/androidx/xr/arcore/HandJointType`.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/xr/arcore/HandJointType, https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose>` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#handJoints()` a map of `https://developer.android.com/reference/kotlin/androidx/xr/arcore/HandJointType` to `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` representing the current pose of each joint in the hand |
| `https://developer.android.com/reference/java/nio/FloatBuffer.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#handJointsBuffer()` the `https://developer.android.com/reference/java/nio/FloatBuffer.html` containing the current state of the hand |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#owner()` self-reference to the object that owns this state |
| `open https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State#trackingState()` the current `https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` of the hand |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

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

Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand.State` for debugging.

Note: Not intended for production use.

## Public properties

### handJoints

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

```
val handJoints: Map<HandJointType, Pose>
```

a map of `https://developer.android.com/reference/kotlin/androidx/xr/arcore/HandJointType` to `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` representing the current pose of each joint in the hand

### handJointsBuffer

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

```
val handJointsBuffer: FloatBuffer
```

the `https://developer.android.com/reference/java/nio/FloatBuffer.html` containing the current state of the hand

### owner

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

```
val owner: Hand
```

self-reference to the object that owns this state

### trackingState

```
open val trackingState: TrackingState
```

the current `https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` of the hand