# ScenePose.HitTestFilter

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

*** ** * ** ***


```
public static class ScenePose.HitTestFilter
```

<br />

*** ** * ** ***

A filter for which Scenes to hit test with `https://developer.android.com/reference/androidx/xr/scenecore/ScenePose#hitTest(androidx.xr.runtime.math.Vector3,androidx.xr.runtime.math.Vector3)`.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/xr/scenecore/ScenePose.HitTestFilter#OTHER_SCENES()` Register hit tests only for other scenes. |
| `static final int` | `https://developer.android.com/reference/androidx/xr/scenecore/ScenePose.HitTestFilter#SELF_SCENE()` Register hit tests for the scene which this ScenePose belongs. |

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/ScenePose.HitTestFilter` | `https://developer.android.com/reference/androidx/xr/scenecore/ScenePose.HitTestFilter#INSTANCE()` |

## Constants

### OTHER_SCENES

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

```
public static final int OTHER_SCENES
```

Register hit tests only for other scenes. A process will only have access to other scenes if it has the `com.android.extensions.xr.ACCESS_XR_OVERLAY_SPACE` permission.

### SELF_SCENE

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

```
public static final int SELF_SCENE
```

Register hit tests for the scene which this ScenePose belongs.

## Public fields

### INSTANCE

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

```
public static @NonNull ScenePose.HitTestFilter INSTANCE
```