androidx.camera.viewfinder.core


Interfaces

ZoomGestureDetector.OnZoomGestureListener

The listener for receiving notifications when gestures occur.

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.

ZoomGestureDetector

Detector that interprets MotionEvents and notify users when a zooming gesture has occurred.

ZoomGestureDetector.ZoomEvent

The zoom event that contains extended info about event state.

ZoomGestureDetector.ZoomEvent.Begin

The beginning of a zoom gesture.

ZoomGestureDetector.ZoomEvent.End

The end of a zoom gesture.

ZoomGestureDetector.ZoomEvent.Move

The moving events of a gesture in progress.

Enums

ImplementationMode

The implementation mode of a Viewfinder.

ScaleType

Options for scaling the input frames vis-à-vis its container 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.