# SpatialAnnotation.State

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

*** ** * ** ***


```
class SpatialAnnotation.State : Trackable.State
```

<br />

*** ** * ** ***

State containing physical properties that update frame-to-frame.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#owner()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation` that owns this state |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#pose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the 2D plane origin where the annotation quad is rooted. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quad?` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#quad()` the physical spatial geometry (in meters) residing on the local XY plane relative to the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#pose()`, this will only have a value when the spatial tracking mode is set to quad |
| `open https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#trackingState()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` of the SpatialAnnotation |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### owner

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

```
val owner: SpatialAnnotation
```

the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation` that owns this state

### pose

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

```
val pose: Pose
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` of the 2D plane origin where the annotation quad is rooted. The local +Z axis relative to the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#pose()` is equivalent to the surface normal, with the quad residing on the local XY plane

### quad

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

```
val quad: Quad?
```

the physical spatial geometry (in meters) residing on the local XY plane relative to the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation.State#pose()`, this will only have a value when the spatial tracking mode is set to quad

### trackingState

```
open val trackingState: TrackingState
```

the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/TrackingState` of the SpatialAnnotation