FakeRuntimeAnchor


class FakeRuntimeAnchor


Fake implementation of Anchor for testing purposes.

Summary

Public companion properties

Int

Limit for the number of anchors that can be created.

Int

The current number of anchors created.

Public functions

open Unit

Detaches this anchor from its Trackable.

open Unit

Generates a random UUID for the anchor and adds it to FakePerceptionManager.anchorUuids.

Public properties

Boolean

whether the anchor is attached to an AnchorHolder

Boolean

a flag to represent available tracking state of the camera when creating the anchor

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 companion properties

anchorResourceLimit

Added in 1.0.0-alpha12
val anchorResourceLimitInt

Limit for the number of anchors that can be created.

anchorsCreatedCount

Added in 1.0.0-alpha12
var anchorsCreatedCountInt

The current number of anchors created.

Public functions

detach

Added in 1.0.0-alpha12
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-alpha12
open fun persist(): Unit

Generates a random UUID for the anchor and adds it to FakePerceptionManager.anchorUuids.

This function will only be added to the list of anchors returned by FakePerceptionManager.getPersistedAnchorUuids if the anchorHolder is a FakePerceptionManager.

Public properties

isAttached

Added in 1.0.0-alpha12
val isAttachedBoolean

whether the anchor is attached to an AnchorHolder

isTrackingAvailable

Added in 1.0.0-alpha12
val isTrackingAvailableBoolean

a flag to represent available tracking state of the camera when creating the anchor

persistenceState

Added in 1.0.0-alpha12
open var persistenceStateAnchor.PersistenceState

the PersistenceState for this anchor

pose

Added in 1.0.0-alpha12
open var posePose

the location of the anchor in the world coordinate space

trackingState

Added in 1.0.0-alpha12
open var trackingStateTrackingState

the current state of the pose of this anchor

uuid

Added in 1.0.0-alpha12
open var uuidUUID?

the UUID that identifies this Anchor if it is persisted