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

Public constructors

CoreState

Added in 1.0.0-alpha04
public CoreState(@NonNull ComparableTimeMark timeMark)

Public methods

equals

public boolean equals(Object other)

getTimeMark

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

at which the state was computed.

hashCode

public int hashCode()

toString

public @NonNull String toString()

Extension functions

PerceptionStateExtenderKt.getPerceptionState

public final PerceptionState PerceptionStateExtenderKt.getPerceptionState(
    @NonNull CoreState receiver
)

The state of the perception system.