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 |
|
final @NonNull ArDevice.State |
the state of the currently tracked device at the |
final Geospatial.State |
the state of the geospatial service at the |
final Depth.State |
the state of the left depth map at the |
final Eye.State |
the state of the user's left eye at the |
final Hand.State |
the state of the left hand at the |
final RenderViewpoint.State |
the state of the left viewpoint used for rendering at the |
final Depth.State |
the state of the mono depth map at the |
final RenderViewpoint.State |
the state of the mono viewpoint used for rendering at the |
final Depth.State |
the state of the right depth map at the |
final Eye.State |
the state of the user's right eye at the |
final Hand.State |
the state of the right hand at the |
final RenderViewpoint.State |
the state of the right viewpoint used for rendering at the |
final @NonNull ComparableTimeMark |
the time at which the state was computed |
final @NonNull Collection<@NonNull Trackable.State> |
the state of the trackables at the |
final Face.State |
the state of the user's face at the |
int |
hashCode() |
Public methods
getArDeviceState
public final @NonNull ArDevice.State getArDeviceState()
the state of the currently tracked device at the timeMark
getGeospatialState
public final Geospatial.State getGeospatialState()
the state of the geospatial service at the timeMark, or null when not supported by the current platform
getLeftDepthState
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
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
public final Hand.State getLeftHandState()
the state of the left hand at the timeMark, or null when not supported by the current platform
getLeftRenderViewpointState
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
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
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
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
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
public final Hand.State getRightHandState()
the state of the right hand at the timeMark, or null when not supported by the current platform
getRightRenderViewpointState
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
public final @NonNull ComparableTimeMark getTimeMark()
the time at which the state was computed
getTrackableStates
public final @NonNull Collection<@NonNull Trackable.State> getTrackableStates()
the state of the trackables at the timeMark that are currently being tracked
getUserFaceState
public final Face.State getUserFaceState()
the state of the user's face at the timeMark, or null when not supported by the current platform