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

the camera's FieldOfView in radians

final @NonNull Pose

a local offset from the device's central tracking point

final @NonNull RenderViewpoint

self-reference to the object that owns this state.

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-beta01
public final @NonNull FieldOfView getFieldOfView()

the camera's FieldOfView in radians

getLocalPose

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

a local offset from the device's central tracking point

getOwner

Added in 1.0.0-beta01
public final @NonNull RenderViewpoint getOwner()

self-reference to the object that owns this state.

getPose

Added in 1.0.0-beta01
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: 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 to DISABLED mid-session, which freezes the pose at its last known state.

hashCode

public int hashCode()