class OpenXrAnchor : ExportableAnchor


Wraps the native XrSpace with the Anchor interface.

Summary

Public functions

open Unit

Detaches this anchor from its Trackable.

open Unit

Sends a request to persist this anchor.

open Unit
update(xrTime: Long)

Updates the entity retrieving its state at xrTime.

Public properties

open IBinder
open Long
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 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.

update

Added in 1.0.0-alpha01
open fun update(xrTime: Long): Unit

Updates the entity retrieving its state at xrTime.

Parameters
xrTime: Long

the number of nanoseconds since the start of the OpenXR epoch.

Public properties

anchorToken

Added in 1.0.0-alpha01
open val anchorTokenIBinder

nativePointer

Added in 1.0.0-alpha01
open val nativePointerLong

persistenceState

Added in 1.0.0-alpha01
open val persistenceStateAnchor.PersistenceState

The PersistenceState for this anchor.

pose

Added in 1.0.0-alpha01
open val posePose

The location of the anchor in the world coordinate space.

trackingState

Added in 1.0.0-alpha01
open val trackingStateTrackingState

The current state of the pose of this anchor.

uuid

Added in 1.0.0-alpha01
open val uuidUUID?

The UUID that identifies this Anchor if it is persisted.