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

the currently tracked device

final DepthMap

the left depth map, or null when not supported by the current platform

final Hand

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

final RenderViewpoint

the left viewpoint used for rendering, or null when not supported by the current platform

final DepthMap

the mono depth map, or null when not supported by the current platform

final RenderViewpoint

the mono viewpoint used for rendering, or null when not supported by the current platform

final DepthMap

the right depth map, or null when not supported by the current platform

final Hand

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

final RenderViewpoint

the right viewpoint used for rendering, 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

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-alpha12
public final @NonNull ArDevice getArDevice()

the currently tracked device

getLeftDepthMap

Added in 1.0.0-alpha12
public final DepthMap getLeftDepthMap()

the left depth map, or null when not supported by the current platform

getLeftHand

Added in 1.0.0-alpha12
public final Hand getLeftHand()

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

getLeftRenderViewpoint

Added in 1.0.0-alpha12
public final RenderViewpoint getLeftRenderViewpoint()

the left viewpoint used for rendering, or null when not supported by the current platform

getMonoDepthMap

Added in 1.0.0-alpha12
public final DepthMap getMonoDepthMap()

the mono depth map, or null when not supported by the current platform

getMonoRenderViewpoint

Added in 1.0.0-alpha12
public final RenderViewpoint getMonoRenderViewpoint()

the mono viewpoint used for rendering, or null when not supported by the current platform

getRightDepthMap

Added in 1.0.0-alpha12
public final DepthMap getRightDepthMap()

the right depth map, or null when not supported by the current platform

getRightHand

Added in 1.0.0-alpha12
public final Hand getRightHand()

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

getRightRenderViewpoint

Added in 1.0.0-alpha12
public final RenderViewpoint getRightRenderViewpoint()

the right viewpoint used for rendering, or null when not supported by the current platform

getTimeMark

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

the time at which the state was computed

getTrackables

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

the trackables that are currently being tracked

getUserFace

Added in 1.0.0-alpha12
public final Face getUserFace()

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

hashCode

public int hashCode()