PerceptionState


public final class PerceptionState


Represents the state of ARCore for Jetpack XR at an specific point in time.

Can be obtained from CoreState.perceptionState.

Summary

Public methods

boolean
equals(Object other)
final Hand

the left hand, or null when not supported by the current platform.

final Hand

the right hand, or null when not supported by the current platform.

final @NonNull ComparableTimeMark

the time at which the state was computed.

final @NonNull Collection<@NonNull Trackable<@NonNull Trackable.State>>

the trackables that are currently being tracked.

int

Public methods

equals

public boolean equals(Object other)

getLeftHand

Added in 1.0.0-alpha02
public final Hand getLeftHand()

the left hand, or null when not supported by the current platform.

getRightHand

Added in 1.0.0-alpha02
public final Hand getRightHand()

the right hand, or null when not supported by the current platform.

getTimeMark

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

the time at which the state was computed.

getTrackables

Added in 1.0.0-alpha02
public final @NonNull Collection<@NonNull Trackable<@NonNull Trackable.State>> getTrackables()

the trackables that are currently being tracked.

hashCode

public int hashCode()