RenderViewpoint.State


class RenderViewpoint.State


Class that contains the current state of the render viewpoint.

Summary

Public functions

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

Public properties

FieldOfView

This property is deprecated. Convert to androidx.xr.runtime.math.FieldOfView

Pose

a local offset from the device's central tracking point

Pose

the render viewpoint's pose in perception space

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

fieldOfView

Added in 1.0.0-alpha13
Deprecated in 1.0.0-alpha13
val fieldOfViewFieldOfView

the camera's FieldOfView in radians

localPose

Added in 1.0.0-alpha13
val localPosePose

a local offset from the device's central tracking point

pose

Added in 1.0.0-alpha13
val posePose

the render viewpoint's pose in perception space

This value is the underlying ArDevice's pose in the global coordinate system of the Session, plus the localPose offset. Its update behavior is determined by the current androidx.xr.runtime.DeviceTrackingMode:

  • SPATIAL_LAST_KNOWN: The device pose is updated each frame with the latest valid tracking data, reflecting physical movement.

  • DISABLED: The device pose is not updated. It remains at the origin (an identity pose) unless this mode is switched from SPATIAL_LAST_KNOWN to DISABLED mid-session, which freezes the pose at its last known state.