# 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)

*** ** * ** ***


```
public final class Hand.State implements Trackable.State
```

<br />

*** ** * ** ***

The representation of the current state of a `https://developer.android.com/reference/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/androidx/xr/runtime/math/Quaternion` and `https://developer.android.com/reference/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/androidx/xr/arcore/HandJointType`.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/HandJointType, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose>` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#getHandJoints()()` a map of `https://developer.android.com/reference/androidx/xr/arcore/HandJointType` to `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` representing the current pose of each joint in the hand |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/nio/FloatBuffer.html` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#getHandJointsBuffer()()` the `https://developer.android.com/reference/java/nio/FloatBuffer.html` containing the current state of the hand |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/Hand` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#getOwner()()` self-reference to the object that owns this state |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#getTrackingState()()` the current `https://developer.android.com/reference/androidx/xr/arcore/TrackingState` of the hand |
| `int` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/arcore/Hand.State#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/arcore/Hand.State` for debugging. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getHandJoints

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

```
public final @NonNull Map<@NonNull HandJointType, @NonNull Pose> getHandJoints()
```

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

### getHandJointsBuffer

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

```
public final @NonNull FloatBuffer getHandJointsBuffer()
```

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

### getOwner

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

```
public final @NonNull Hand getOwner()
```

self-reference to the object that owns this state

### getTrackingState

```
public @NonNull TrackingState getTrackingState()
```

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

### hashCode

```
public int hashCode()
```

### toString

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

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

Note: Not intended for production use.