# SpatialVisibility

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

*** ** * ** ***


```
public final class SpatialVisibility
```

<br />

*** ** * ** ***

Spatial Visibility states of content within the user's field of view.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility` | `https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility#OUTSIDE_FIELD_OF_VIEW()` The content is fully outside the user's field of view. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility` | `https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility#PARTIALLY_WITHIN_FIELD_OF_VIEW()` The content is partially within the user's field of view, but not fully inside of it. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility` | `https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility#UNKNOWN()` Unknown spatial visibility state. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility` | `https://developer.android.com/reference/androidx/xr/scenecore/SpatialVisibility#WITHIN_FIELD_OF_VIEW()` The content is fully within the user's field of view. |

| ### 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/SpatialVisibility#toString()()` |

## Public fields

### OUTSIDE_FIELD_OF_VIEW

```
public static final @NonNull SpatialVisibility OUTSIDE_FIELD_OF_VIEW
```

The content is fully outside the user's field of view.

### PARTIALLY_WITHIN_FIELD_OF_VIEW

```
public static final @NonNull SpatialVisibility PARTIALLY_WITHIN_FIELD_OF_VIEW
```

The content is partially within the user's field of view, but not fully inside of it.

### UNKNOWN

```
public static final @NonNull SpatialVisibility UNKNOWN
```

Unknown spatial visibility state.

### WITHIN_FIELD_OF_VIEW

```
public static final @NonNull SpatialVisibility WITHIN_FIELD_OF_VIEW
```

The content is fully within the user's field of view.

## Public methods

### toString

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