FakeAnchorEntity


public final class FakeAnchorEntity extends FakeSystemSpaceEntity


Test-only implementation of AnchorEntity

Summary

Public constructors

Public methods

long

Returns the native pointer of the anchor.

int

The current state of the anchor.

void

Registers a listener to be called when the state of the anchor changes.

Public constructors

FakeAnchorEntity

Added in 1.0.0-alpha04
public FakeAnchorEntity()

Public methods

getNativePointer

Added in 1.0.0-alpha04
public long getNativePointer()

Returns the native pointer of the anchor.

getState

Added in 1.0.0-alpha04
public int getState()

The current state of the anchor.

setOnStateChangedListener

Added in 1.0.0-alpha04
public void setOnStateChangedListener(
    @NonNull AnchorEntity.OnStateChangedListener onStateChangedListener
)

Registers a listener to be called when the state of the anchor changes.