public final class AnchorSpaceTester


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

Summary

Public methods

boolean
equals(Object other)
final AnchorSpace.State

The state of the AnchorSpace.

int
final void

The state of the AnchorSpace.

final void

Simulates a change to the underlying space's origin.

Public methods

equals

public boolean equals(Object other)

getState

Added in 1.0.0-beta01
public final AnchorSpace.State getState()

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.

hashCode

public int hashCode()

setState

Added in 1.0.0-beta01
public final void setState(AnchorSpace.State value)

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.

triggerOnOriginChanged

Added in 1.0.0-beta01
public final void triggerOnOriginChanged()

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.