# InputEvent.Action

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

*** ** * ** ***


```
class InputEvent.Action
```

<br />

*** ** * ** ***

Specifies the action (e.g. down, up, move, etc.) of the input event.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#CANCEL()` While the primary action button or gesture was held, the pointer was disabled. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#DOWN()` The primary action button or gesture was just pressed / started. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#HOVER_ENTER()` The primary action button or gesture is not pressed, and the pointer ray started to hit a new node. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#HOVER_EXIT()` The primary action button or gesture is not pressed, and the pointer ray stopped hitting the node that it was previously hitting. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#HOVER_MOVE()` The primary action button or gesture is not pressed, and the pointer ray continued to hit the same node. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#MOVE()` The primary action button or gesture was pressed/active in the previous event, and is still pressed/active. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#UP()` The primary action button or gesture was just released / stopped. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#toString()()` |

## Public companion properties

### CANCEL

```
val CANCEL: InputEvent.Action
```

While the primary action button or gesture was held, the pointer was disabled. This happens if you are using controllers and the battery runs out, or if you are using a source that transitions to a new pointer type, eg `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Source#GAZE_AND_GESTURE()`.

### DOWN

```
val DOWN: InputEvent.Action
```

The primary action button or gesture was just pressed / started.

### HOVER_ENTER

```
val HOVER_ENTER: InputEvent.Action
```

The primary action button or gesture is not pressed, and the pointer ray started to hit a new node. The hit info represents the node that is being hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

### HOVER_EXIT

```
val HOVER_EXIT: InputEvent.Action
```

The primary action button or gesture is not pressed, and the pointer ray stopped hitting the node that it was previously hitting. The hit info represents the node that was being hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

### HOVER_MOVE

```
val HOVER_MOVE: InputEvent.Action
```

The primary action button or gesture is not pressed, and the pointer ray continued to hit the same node. The hit info represents the node that was hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

### MOVE

```
val MOVE: InputEvent.Action
```

The primary action button or gesture was pressed/active in the previous event, and is still pressed/active. The hit info represents the node that was originally hit (ie, as provided in the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#DOWN()` event). The hit position may be null if the pointer is no longer hitting that node.

### UP

```
val UP: InputEvent.Action
```

The primary action button or gesture was just released / stopped. The hit info represents the node that was originally hit (ie, as provided in the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/InputEvent.Action#DOWN()` event).

## Public functions

### toString

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