FakeRuntimeAnchor


class FakeRuntimeAnchor


Test-only implementation of RuntimeAnchor

Summary

Public constructors

FakeRuntimeAnchor(pose: Pose, anchorHolder: AnchorHolder?)

Public functions

open Unit

Detaches this anchor from its Trackable.

open Unit

Sends a request to persist this anchor.

Public properties

AnchorHolder?
Boolean

Whether the anchor is attached to an AnchorHolder

open Anchor.PersistenceState

The PersistenceState for this anchor.

open Pose

The location of the anchor in the world coordinate space.

open TrackingState

The current state of the pose of this anchor.

open UUID?

The UUID that identifies this Anchor if it is persisted.

Public constructors

FakeRuntimeAnchor

Added in 1.0.0-alpha01
FakeRuntimeAnchor(pose: Pose, anchorHolder: AnchorHolder? = null)

Public functions

detach

Added in 1.0.0-alpha01
open fun detach(): Unit

Detaches this anchor from its Trackable. After detaching, the anchor will not be updated anymore and cannot be reattached to another trackable.

persist

Added in 1.0.0-alpha01
open fun persist(): Unit

Sends a request to persist this anchor. The value of persistenceState will be updated based on the progress of this operation. The value of uuid will be set if the operation is successful.

Public properties

anchorHolder

Added in 1.0.0-alpha01
val anchorHolderAnchorHolder?

isAttached

Added in 1.0.0-alpha01
val isAttachedBoolean

Whether the anchor is attached to an AnchorHolder

persistenceState

Added in 1.0.0-alpha01
open var persistenceStateAnchor.PersistenceState

The PersistenceState for this anchor.

pose

Added in 1.0.0-alpha01
open var posePose

The location of the anchor in the world coordinate space.

trackingState

Added in 1.0.0-alpha01
open var trackingStateTrackingState

The current state of the pose of this anchor.

uuid

Added in 1.0.0-alpha01
open var uuidUUID?

The UUID that identifies this Anchor if it is persisted.