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

Public methods

boolean
equals(Object other)
final @NonNull ComparableTimeMark

at which the state was computed.

int
@NonNull String

Extension functions

final 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
public CoreState(@NonNull ComparableTimeMark timeMark)

Public methods

equals

public boolean equals(Object other)

getTimeMark

Added in 1.0.0-alpha15
public final @NonNull ComparableTimeMark getTimeMark()

at which the state was computed.

hashCode

public int hashCode()

toString

public @NonNull String toString()

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.`