class AnchorSpaceTester


A test-only accessor for AnchorSpace that enables direct manipulation and inspection of its internal state.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int
Unit

Simulates a change to the underlying space's origin.

Public properties

AnchorSpace.State?

The state of the AnchorSpace.

Public functions

equals

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

hashCode

open fun hashCode(): Int

triggerOnOriginChanged

Added in 1.0.0-beta01
fun triggerOnOriginChanged(): Unit

Simulates a change to the underlying space's origin.

This function manually triggers any listeners registered via AnchorSpace.addOriginChangedListener, allowing tests to verify that the application correctly responds to spatial updates from the system.

Public properties

state

Added in 1.0.0-beta01
var stateAnchorSpace.State?

The state of the AnchorSpace.

Setting this property simulates a system-level state change (e.g., from AnchorSpace.State.UNANCHORED to AnchorSpace.State.ANCHORED) and triggers the listener set by AnchorSpace.addStateChangedListener.