# TestSpatialAnnotation

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

*** ** * ** ***


```
@ExperimentalSpatialAnnotationsApi
class TestSpatialAnnotation : TestTrackable
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.xr.arcore.testing.TestTrackable](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestTrackable) ||
|   | ↳ | [androidx.xr.arcore.testing.TestSpatialAnnotation](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation) |

*** ** * ** ***

A simulated SpatialAnnotation in the test environment.

Modifying the properties on this instance will automatically trigger the underlying perception runtime to tick forward, allowing reactive UI tests to synchronously test spatial layout shifts.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#TestSpatialAnnotation(androidx.xr.arcore.SpatialAnnotationId)(id: https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationId)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationQuadAlignment?` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#alignment()` |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationId` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#id()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#isVisible()` indicates whether the trackable object is currently in view of the runtime |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#pose()` |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quad?` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestSpatialAnnotation#quad()` |

## Public constructors

### TestSpatialAnnotation

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

```
TestSpatialAnnotation(id: SpatialAnnotationId)
```

## Public properties

### alignment

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

```
var alignment: SpatialAnnotationQuadAlignment?
```

### id

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

```
val id: SpatialAnnotationId
```

### isVisible

```
open var isVisible: Boolean
```

indicates whether the trackable object is currently in view of the runtime

### pose

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

```
var pose: Pose
```

### quad

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

```
var quad: Quad?
```