# 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)

*** ** * ** ***


```
public final class SpatialAnnotation.State implements Trackable.State
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#getOwner()()` the `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation` that owns this state |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#getPose()()` the `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` of the 2D plane origin where the annotation quad is rooted. |
| `final https://developer.android.com/reference/androidx/xr/runtime/math/Quad` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#getQuad()()` the physical spatial geometry (in meters) residing on the local XY plane relative to the `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#pose()`, this will only have a value when the spatial tracking mode is set to quad |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#getTrackingState()()` the `https://developer.android.com/reference/androidx/xr/arcore/TrackingState` of the SpatialAnnotation |
| `int` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotation.State#toString()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getOwner

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

```
public final @NonNull SpatialAnnotation getOwner()
```

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

### getPose

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

```
public final @NonNull Pose getPose()
```

the `https://developer.android.com/reference/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/androidx/xr/arcore/SpatialAnnotation.State#pose()` is equivalent to the surface normal, with the quad residing on the local XY plane

### getQuad

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

```
public final Quad getQuad()
```

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

### getTrackingState

```
public @NonNull TrackingState getTrackingState()
```

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

### hashCode

```
public int hashCode()
```

### toString

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