# HitTestResult.SurfaceType

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

*** ** * ** ***


```
public static class HitTestResult.SurfaceType
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/xr/scenecore/HitTestResult.SurfaceType#OBJECT() = 2` The ray hit an object that is not a flat surface such as a gltfEntity. |
| `static final int` | `https://developer.android.com/reference/androidx/xr/scenecore/HitTestResult.SurfaceType#PLANE() = 1` The ray hit a flat surface such as a PanelEntity. |
| `static final int` | `https://developer.android.com/reference/androidx/xr/scenecore/HitTestResult.SurfaceType#UNKNOWN() = 0` The ray hit an unknown surface or did not hit anything |

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

## Constants

### OBJECT

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

```
public static final int OBJECT = 2
```

The ray hit an object that is not a flat surface such as a gltfEntity.

### PLANE

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

```
public static final int PLANE = 1
```

The ray hit a flat surface such as a PanelEntity.

### UNKNOWN

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

```
public static final int UNKNOWN = 0
```

The ray hit an unknown surface or did not hit anything

## Public fields

### INSTANCE

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

```
public static @NonNull HitTestResult.SurfaceType INSTANCE
```