RenderViewpoint.State


public final class RenderViewpoint.State


Class that contains the current state of the render viewpoint.

Summary

Public methods

boolean
equals(Object other)
final @NonNull FieldOfView

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

final @NonNull Pose

a local offset from the device's central tracking point

final @NonNull Pose

the render viewpoint's pose in perception space

int

Public methods

equals

public boolean equals(Object other)

getFieldOfView

Added in 1.0.0-alpha13
Deprecated in 1.0.0-alpha13
public final @NonNull FieldOfView getFieldOfView()

the camera's FieldOfView in radians

getLocalPose

Added in 1.0.0-alpha13
public final @NonNull Pose getLocalPose()

a local offset from the device's central tracking point

getPose

Added in 1.0.0-alpha13
public final @NonNull Pose getPose()

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.

hashCode

public int hashCode()