# PointerCaptureComponent.PointerCaptureState

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

*** ** * ** ***


```
public final class PointerCaptureComponent.PointerCaptureState
```

<br />

*** ** * ** ***

Defines the possible states of a `https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent`.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState` | `https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState#ACTIVE()` Pointer Capture is enabled for this component. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState` | `https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState#PAUSED()` Pointer Capture is temporarily disabled for this component. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState` | `https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState#STOPPED()` Pointer Capture has been stopped for this component and no more callbacks will get triggered. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/PointerCaptureComponent.PointerCaptureState#toString()()` |

## Public fields

### ACTIVE

```
public static final @NonNull PointerCaptureComponent.PointerCaptureState ACTIVE
```

Pointer Capture is enabled for this component.

### PAUSED

```
public static final @NonNull PointerCaptureComponent.PointerCaptureState PAUSED
```

Pointer Capture is temporarily disabled for this component. The component can resume capture from this state.

### STOPPED

```
public static final @NonNull PointerCaptureComponent.PointerCaptureState STOPPED
```

Pointer Capture has been stopped for this component and no more callbacks will get triggered. The component will not recover from this state. This can occur if the underlying system replaces this pointer capture request by another one.

## Public methods

### toString

```
public @NonNull String toString()
```