CoreState
public final 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 |
|---|
CoreState(@NonNull ComparableTimeMark timeMark) |
Public methods |
|
|---|---|
boolean |
|
final @NonNull ComparableTimeMark |
at which the state was computed. |
int |
hashCode() |
@NonNull String |
toString() |
Extension functions |
|
|---|---|
final PerceptionState |
PerceptionStateExt.getPerceptionState(@NonNull CoreState receiver)The state of the perception system at a specific point in time, corresponding to a |
Public constructors
Public methods
getTimeMark
public final @NonNull ComparableTimeMark getTimeMark()
at which the state was computed.
Extension functions
PerceptionStateExt.getPerceptionState
public final PerceptionState PerceptionStateExt.getPerceptionState(@NonNull CoreState receiver)
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.`