# HandTester

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

*** ** * ** ***


```
public final class HandTester
```

<br />

*** ** * ** ***

Tests simulated hand in unit tests.

## Summary

| ### Public methods |
|---|---|
| `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/testing/HandTester#getHandJointMap()()` a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html` of `https://developer.android.com/reference/androidx/xr/arcore/HandJointType` to that joint's `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` |
| `final boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/HandTester#isVisible()()` whether the hand is currently in view of the runtime |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/HandTester#setHandJointMap(kotlin.collections.Map)(@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> value)` a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html` of `https://developer.android.com/reference/androidx/xr/arcore/HandJointType` to that joint's `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/HandTester#setVisible(kotlin.Boolean)(boolean value)` whether the hand is currently in view of the runtime |

## Public methods

### getHandJointMap

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> getHandJointMap()
```

a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html` of `https://developer.android.com/reference/androidx/xr/arcore/HandJointType` to that joint's `https://developer.android.com/reference/androidx/xr/runtime/math/Pose`

### isVisible

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

```
public final boolean isVisible()
```

whether the hand is currently in view of the runtime

### setHandJointMap

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

```
public final void setHandJointMap(@NonNull Map<@NonNull HandJointType, @NonNull Pose> value)
```

a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html` of `https://developer.android.com/reference/androidx/xr/arcore/HandJointType` to that joint's `https://developer.android.com/reference/androidx/xr/runtime/math/Pose`

### setVisible

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

```
public final void setVisible(boolean value)
```

whether the hand is currently in view of the runtime