class CoreState


Represents the state of the XR system at a specific point in time.

Instances of this class can be accessed via the Session.state property. This class may include extension properties provided by implementations of the StateExtender interface found during Session creation.

Summary

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

ComparableTimeMark

at which the state was computed.

Extension properties

PerceptionState?

The state of the perception system at a specific point in time, corresponding to a CoreState.

Public constructors

CoreState

Added in 1.0.0-alpha15
CoreState(timeMark: ComparableTimeMark)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

timeMark

Added in 1.0.0-alpha15
val timeMarkComparableTimeMark

at which the state was computed.

Extension properties

CoreState.perceptionState

val CoreState.perceptionStatePerceptionState?

The state of the perception system at a specific point in time, corresponding to a CoreState.

This extension property provides a consistent snapshot of all available perception data (e.g., hands, eyes, trackables, depth, etc.) for the CoreState.timeMark of the receiver. All perception state objects within a single PerceptionState instance are synchronized to that particular moment in time.`