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 @NonNull ArDevice
final DepthMap
final Hand

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

final RenderViewpoint
final DepthMap
final RenderViewpoint
final DepthMap
final Hand

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

final RenderViewpoint
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.

final Face

the user's face, or null when not supported by the current platform.

int

Public methods

equals

public boolean equals(Object other)

getArDevice

Added in 1.0.0-alpha06
public final @NonNull ArDevice getArDevice()

getLeftDepthMap

Added in 1.0.0-alpha06
public final DepthMap getLeftDepthMap()

getLeftHand

Added in 1.0.0-alpha06
public final Hand getLeftHand()

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

getLeftRenderViewpoint

Added in 1.0.0-alpha06
public final RenderViewpoint getLeftRenderViewpoint()

getMonoDepthMap

Added in 1.0.0-alpha06
public final DepthMap getMonoDepthMap()

getMonoRenderViewpoint

Added in 1.0.0-alpha06
public final RenderViewpoint getMonoRenderViewpoint()

getRightDepthMap

Added in 1.0.0-alpha06
public final DepthMap getRightDepthMap()

getRightHand

Added in 1.0.0-alpha06
public final Hand getRightHand()

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

getRightRenderViewpoint

Added in 1.0.0-alpha06
public final RenderViewpoint getRightRenderViewpoint()

getTimeMark

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

the time at which the state was computed.

getTrackables

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

the trackables that are currently being tracked.

getUserFace

Added in 1.0.0-alpha06
public final Face getUserFace()

the user's face, or null when not supported by the current platform.

hashCode

public int hashCode()