TestSpatialAnnotation


@ExperimentalSpatialAnnotationsApi
class TestSpatialAnnotation : TestTrackable


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

Public properties

SpatialAnnotationQuadAlignment?
SpatialAnnotationId
open Boolean

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

Pose
Quad?

Public constructors

TestSpatialAnnotation

Added in 1.1.0-alpha01
TestSpatialAnnotation(id: SpatialAnnotationId)

Public properties

id

Added in 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
var pose: Pose

quad

Added in 1.1.0-alpha01
var quad: Quad?