TestSpatialAnnotation


@ExperimentalSpatialAnnotationsApi
public final class TestSpatialAnnotation extends 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 methods

final SpatialAnnotationQuadAlignment
final @NonNull SpatialAnnotationId
final @NonNull Pose
final Quad
boolean

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

final void
final void
final void
setQuad(Quad value)
void
setVisible(boolean value)

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

Public constructors

TestSpatialAnnotation

Added in 1.1.0-alpha01
public TestSpatialAnnotation(@NonNull SpatialAnnotationId id)

Public methods

getAlignment

Added in 1.1.0-alpha01
public final SpatialAnnotationQuadAlignment getAlignment()

getId

Added in 1.1.0-alpha01
public final @NonNull SpatialAnnotationId getId()

getPose

Added in 1.1.0-alpha01
public final @NonNull Pose getPose()

getQuad

Added in 1.1.0-alpha01
public final Quad getQuad()

isVisible

public boolean isVisible()

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

setAlignment

Added in 1.1.0-alpha01
public final void setAlignment(SpatialAnnotationQuadAlignment value)

setPose

Added in 1.1.0-alpha01
public final void setPose(@NonNull Pose value)

setQuad

Added in 1.1.0-alpha01
public final void setQuad(Quad value)

setVisible

public void setVisible(boolean value)

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