public final class DepthMap


Contains the depth map information corresponding to a specific RenderViewpoint.

Summary

Nested types

public final class DepthMap.State

Contains the current state of depth tracking.

Public methods

final @NonNull StateFlow<@NonNull DepthMap.State>

the current State of the depth map

static final DepthMap
left(@NonNull Session session)

Returns the DepthMap associated with the left display.

static final DepthMap
mono(@NonNull Session session)

Returns the DepthMap associated with the single device display.

static final DepthMap
right(@NonNull Session session)

Returns the DepthMap associated with the right display.

Public methods

getState

Added in 1.0.0-alpha12
public final @NonNull StateFlow<@NonNull DepthMap.StategetState()

the current State of the depth map

left

Added in 1.0.0-alpha12
public static final DepthMap left(@NonNull Session session)

Returns the DepthMap 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-alpha12
public static final DepthMap mono(@NonNull Session session)

Returns the DepthMap associated with the single device display.

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

Parameters
@NonNull Session session

the currently active Session

right

Added in 1.0.0-alpha12
public static final DepthMap right(@NonNull Session session)

Returns the DepthMap associated with the right display.

Supported only on devices that use stereo displays for rendering.

Parameters
@NonNull Session session

the currently active Session