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

*** ** * ** ***


```
class Eye.State : Trackable.State
```

<br />

*** ** * ** ***

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

The `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose`s provided are the position and rotation of the eye itself, relative to the head pose.

## 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/Eye.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/Eye.State#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State#isOpen()` a flag indicating whether the eye is open |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State#owner()` self-reference to the object that owns this state |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State#pose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the eye |
| `open https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye.State#trackingState()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` of the eye |

## 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/Eye.State` for debugging.

Note: Not intended for production use.

## Public properties

### isOpen

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

```
val isOpen: Boolean
```

a flag indicating whether the eye is open

### owner

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

```
val owner: Eye
```

self-reference to the object that owns this state

### pose

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

```
val pose: Pose
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the eye

### trackingState

```
open val trackingState: TrackingState
```

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