ViewfinderSurfaceRequestUtil

Added in 1.4.0-alpha10

public final class ViewfinderSurfaceRequestUtil


Summary

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