# EyeTester

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/EyeTester.kt+class:androidx.xr.arcore.testing.EyeTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


```
public final class EyeTester
```

<br />

*** ** * ** ***

Controls a simulated `https://developer.android.com/reference/androidx/xr/arcore/Eye` in unit tests.

## Summary

| ### Public methods |
|---|---|
| `final @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/EyeTester#getPose()()` Pose of the eye within the testing environment. |
| `final boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/EyeTester#isOpen()()` Flag indicating the eye is open and thus visible to the runtime. |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/EyeTester#setOpen(kotlin.Boolean)(boolean value)` Flag indicating the eye is open and thus visible to the runtime. |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/EyeTester#setPose(androidx.xr.runtime.math.Pose)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose value)` Pose of the eye within the testing environment. |

## Public methods

### getPose

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

```
public final @NonNull Pose getPose()
```

Pose of the eye within the testing environment.

### isOpen

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

```
public final boolean isOpen()
```

Flag indicating the eye is open and thus visible to the runtime.

### setOpen

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

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

Flag indicating the eye is open and thus visible to the runtime.

### setPose

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

```
public final void setPose(@NonNull Pose value)
```

Pose of the eye within the testing environment.