# EyeTrackingMode

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

*** ** * ** ***


```
class EyeTrackingMode
```

<br />

*** ** * ** ***

Feature that allows tracking of the user's eyes.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#COARSE_TRACKING()` Enables coarse eye tracking, providing general gaze direction without high precision. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#DISABLED()` Eye tracking is disabled. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#FINE_TRACKING()` Enables fine eye tracking, providing more precise gaze direction. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode#mode()` |

## Public companion properties

### COARSE_TRACKING

```
val COARSE_TRACKING: EyeTrackingMode
```

Enables coarse eye tracking, providing general gaze direction without high precision.

Supported runtimes:

- OpenXR

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#EYE_TRACKING_COARSE()`

### DISABLED

```
val DISABLED: EyeTrackingMode
```

Eye tracking is disabled.

### FINE_TRACKING

```
val FINE_TRACKING: EyeTrackingMode
```

Enables fine eye tracking, providing more precise gaze direction.

Supported runtimes:

- OpenXR

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#EYE_TRACKING_FINE()`

## Public functions

### toString

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

Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/EyeTrackingMode` for debugging.

Note: Not intended for production use.

## Public properties

### mode

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

```
val mode: Int
```