ViewfinderSurfaceRequestUtil

Added in 1.4.0-alpha10

public final class ViewfinderSurfaceRequestUtil


Summary

Public methods

static final @NonNull ViewfinderSurfaceRequest.Builder

This method is deprecated. Use androidx.camera.viewfinder.surface.ViewfinderSurfaceRequest as argument

Public methods

populateFromCharacteristics

public static final @NonNull ViewfinderSurfaceRequest.Builder populateFromCharacteristics(
    @NonNull ViewfinderSurfaceRequest.Builder receiver,
    @NonNull CameraCharacteristics cameraCharacteristics
)

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.COMPATIBLE.