androidx.camera.viewfinder.surface


Interfaces

ViewfinderSurfaceProvider

A interface implemented by the application to provide a Surface for viewfinder.

Classes

TransformationInfo

Transformation information associated with the preview output.

ViewfinderSurfaceRequest

The request to get a Surface to display viewfinder input.

ViewfinderSurfaceRequest.Builder

Builder for ViewfinderSurfaceRequest.

ViewfinderSurfaceRequest.Result

Result of providing a surface to a ViewfinderSurfaceRequest via .provideSurface.

Enums

ImplementationMode

The implementation mode of a Viewfinder.

Extension functions summary

Extension functions

populateFromCharacteristics

fun ViewfinderSurfaceRequest.Builder.populateFromCharacteristics(
    cameraCharacteristics: CameraCharacteristics
): ViewfinderSurfaceRequest.Builder

Populates ViewfinderSurfaceRequest.Builder from CameraCharacteristics.

The CameraCharacteristics will be used to populate information including lens facing, sensor orientation and ImplementationMode. If the hardware level is legacy, the ImplementationMode will be set to ImplementationMode.EMBEDDED.