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

the state of the currently tracked device at the timeMark

final Depth.State

the state of the left depth map at the timeMark, or null when not supported by the current platform

final Eye.State

the state of the user's left eye at the timeMark, or null when not supported by the current platform

final Hand.State

the state of the left hand at the timeMark, or null when not supported by the current platform

final RenderViewpoint.State

the state of the left viewpoint used for rendering at the timeMark, or null when not supported by the current platform

final Depth.State

the state of the mono depth map at the timeMark, or null when not supported by the current platform

final RenderViewpoint.State

the state of the mono viewpoint used for rendering at the timeMark, or null when not supported by the current platform

final Depth.State

the state of the right depth map at the timeMark, or null when not supported by the current platform

final Eye.State

the state of the user's right eye at the timeMark, or null when not supported by the current platform

final Hand.State

the state of the right hand at the timeMark, or null when not supported by the current platform

final RenderViewpoint.State

the state of the right viewpoint used for rendering at the timeMark, 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.State>

the state of the trackables at the timeMark that are currently being tracked

final Face.State

the state of the user's face at the timeMark, or null when not supported by the current platform

int

Public methods

equals

public boolean equals(Object other)

getArDeviceState

Added in 1.0.0-alpha14
public final @NonNull ArDevice.State getArDeviceState()

the state of the currently tracked device at the timeMark

getLeftDepthState

Added in 1.0.0-alpha14
public final Depth.State getLeftDepthState()

the state of the left depth map at the timeMark, or null when not supported by the current platform

getLeftEyeState

Added in 1.0.0-alpha14
public final Eye.State getLeftEyeState()

the state of the user's left eye at the timeMark, or null when not supported by the current platform

getLeftHandState

Added in 1.0.0-alpha14
public final Hand.State getLeftHandState()

the state of the left hand at the timeMark, or null when not supported by the current platform

getLeftRenderViewpointState

Added in 1.0.0-alpha14
public final RenderViewpoint.State getLeftRenderViewpointState()

the state of the left viewpoint used for rendering at the timeMark, or null when not supported by the current platform

getMonoDepthState

Added in 1.0.0-alpha14
public final Depth.State getMonoDepthState()

the state of the mono depth map at the timeMark, or null when not supported by the current platform

getMonoRenderViewpointState

Added in 1.0.0-alpha14
public final RenderViewpoint.State getMonoRenderViewpointState()

the state of the mono viewpoint used for rendering at the timeMark, or null when not supported by the current platform

getRightDepthState

Added in 1.0.0-alpha14
public final Depth.State getRightDepthState()

the state of the right depth map at the timeMark, or null when not supported by the current platform

getRightEyeState

Added in 1.0.0-alpha14
public final Eye.State getRightEyeState()

the state of the user's right eye at the timeMark, or null when not supported by the current platform

getRightHandState

Added in 1.0.0-alpha14
public final Hand.State getRightHandState()

the state of the right hand at the timeMark, or null when not supported by the current platform

getRightRenderViewpointState

Added in 1.0.0-alpha14
public final RenderViewpoint.State getRightRenderViewpointState()

the state of the right viewpoint used for rendering at the timeMark, or null when not supported by the current platform

getTimeMark

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

the time at which the state was computed

getTrackableStates

Added in 1.0.0-alpha14
public final @NonNull Collection<@NonNull Trackable.StategetTrackableStates()

the state of the trackables at the timeMark that are currently being tracked

getUserFaceState

Added in 1.0.0-alpha14
public final Face.State getUserFaceState()

the state of the user's face at the timeMark, or null when not supported by the current platform

hashCode

public int hashCode()