# SpatialAnnotationTrackingMode

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/XrCapabilities.kt+class:androidx.xr.runtime.SpatialAnnotationTrackingMode) Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.1.0-alpha02)

*** ** * ** ***


```
@ExperimentalSpatialAnnotationsApi
public final class SpatialAnnotationTrackingMode
```

<br />

*** ** * ** ***

Type of physical object to be tracked by spatial annotations.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode#DISABLED()` Spatial annotations will not be tracked. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode#QUAD()` Unlocks 3D quadrilateral tracking, and inherently includes POINT capabilities. |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode#getMode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode` for debugging. |

## Public fields

### DISABLED

```
public static final @NonNull SpatialAnnotationTrackingMode DISABLED
```

Spatial annotations will not be tracked.

### QUAD

```
public static final @NonNull SpatialAnnotationTrackingMode QUAD
```

Unlocks 3D quadrilateral tracking, and inherently includes POINT capabilities.

Supported runtimes:

- OpenXR

Required permissions:

- `https://developer.android.com/reference/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_FINE()`

## Public methods

### getMode

Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.1.0-alpha02)

```
public final int getMode()
```

### toString

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

Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/SpatialAnnotationTrackingMode` for debugging. Note: Not intended for production use.