PerceptionState


class PerceptionState


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

Can be obtained from CoreState.perceptionState.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

ArDevice

the currently tracked device.

DepthMap?

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

Hand?

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

RenderViewpoint?

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

DepthMap?

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

RenderViewpoint?

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

DepthMap?

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

Hand?

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

RenderViewpoint?

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

ComparableTimeMark

the time at which the state was computed.

Collection<Trackable<Trackable.State>>

the trackables that are currently being tracked.

Face?

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

arDevice

Added in 1.0.0-alpha07
val arDeviceArDevice

the currently tracked device.

leftDepthMap

Added in 1.0.0-alpha07
val leftDepthMapDepthMap?

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

leftHand

Added in 1.0.0-alpha07
val leftHandHand?

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

leftRenderViewpoint

Added in 1.0.0-alpha07
val leftRenderViewpointRenderViewpoint?

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

monoDepthMap

Added in 1.0.0-alpha07
val monoDepthMapDepthMap?

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

monoRenderViewpoint

Added in 1.0.0-alpha07
val monoRenderViewpointRenderViewpoint?

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

rightDepthMap

Added in 1.0.0-alpha07
val rightDepthMapDepthMap?

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

rightHand

Added in 1.0.0-alpha07
val rightHandHand?

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

rightRenderViewpoint

Added in 1.0.0-alpha07
val rightRenderViewpointRenderViewpoint?

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

timeMark

Added in 1.0.0-alpha07
val timeMarkComparableTimeMark

the time at which the state was computed.

trackables

Added in 1.0.0-alpha07
val trackablesCollection<Trackable<Trackable.State>>

the trackables that are currently being tracked.

userFace

Added in 1.0.0-alpha07
val userFaceFace?

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