SurfaceEntity.StereoMode


class SurfaceEntity.StereoMode


Specifies how the surface content will be routed for stereo viewing. Applications must render into the surface in accordance with what they provided here in order for the compositor to correctly produce a stereoscopic view to the user.

Values here match values from androidx.media3.common.C.StereoMode.

See also
https

://developer.android.com/reference/androidx/media3/common/C.StereoMode

Summary

Public companion properties

SurfaceEntity.StereoMode

Each eye will see the entire surface (no separation)

SurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to left, right eyes

SurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to right, left eyes

SurfaceEntity.StereoMode

The left, right halves of the surface will map to left, right eyes

SurfaceEntity.StereoMode

The top, bottom halves of the surface will map to left, right eyes

Public functions

open String

Public companion properties

MONO

val MONOSurfaceEntity.StereoMode

Each eye will see the entire surface (no separation)

MULTIVIEW_LEFT_PRIMARY

val MULTIVIEW_LEFT_PRIMARYSurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to left, right eyes

MULTIVIEW_RIGHT_PRIMARY

val MULTIVIEW_RIGHT_PRIMARYSurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to right, left eyes

SIDE_BY_SIDE

val SIDE_BY_SIDESurfaceEntity.StereoMode

The left, right halves of the surface will map to left, right eyes

TOP_BOTTOM

val TOP_BOTTOMSurfaceEntity.StereoMode

The top, bottom halves of the surface will map to left, right eyes

Public functions

toString

open fun toString(): String