RenderViewpoint


public final class RenderViewpoint


Represents a single viewpoint used for rendering, such as a left eye, right eye, or a mono view.

This class provides access to the State of a specific render viewpoint, including its pose, localPose, and fieldOfView.

Summary

Nested types

public final class RenderViewpoint.State

Class that contains the current state of the render viewpoint.

Public methods

boolean
equals(Object other)
final @NonNull StateFlow<@NonNull RenderViewpoint.State>

The current State of the render viewpoint.

int
static final RenderViewpoint
left(@NonNull Session session)

Returns the RenderViewpoint associated with the left display.

static final RenderViewpoint
mono(@NonNull Session session)

Returns the RenderViewpoint associated with the single device display.

static final RenderViewpoint
right(@NonNull Session session)

Returns the RenderViewpoint associated with the right display.

Extension functions

final @NonNull Flowable<@NonNull RenderViewpoint.State>

The current State of the Render Viewpoint.

Public methods

equals

public boolean equals(Object other)

getState

Added in 1.0.0-alpha06
public final @NonNull StateFlow<@NonNull RenderViewpoint.StategetState()

The current State of the render viewpoint.

hashCode

public int hashCode()

left

Added in 1.0.0-alpha06
public static final RenderViewpoint left(@NonNull Session session)

Returns the RenderViewpoint associated with the left display.

Supported only on devices that use stereo displays for rendering.

Parameters
@NonNull Session session

the currently active Session.

mono

Added in 1.0.0-alpha06
public static final RenderViewpoint mono(@NonNull Session session)

Returns the RenderViewpoint associated with the single device display.

When the device uses a single display, this will return the render viewpoint for that display. When the device uses stereo displays, this will return the render viewpoint for the center of the two displays.

Parameters
@NonNull Session session

the currently active Session.

right

Added in 1.0.0-alpha06
public static final RenderViewpoint right(@NonNull Session session)

Returns the RenderViewpoint associated with the right display.

Supported only on devices that use stereo displays for rendering.

Parameters
@NonNull Session session

the currently active Session.

Extension functions

RxJava3RenderViewpointKt.getStateAsFlowable

public final @NonNull Flowable<@NonNull RenderViewpoint.StateRxJava3RenderViewpointKt.getStateAsFlowable(
    @NonNull RenderViewpoint receiver
)

The current State of the Render Viewpoint.