object CameraViewfinderExt


Provides a suspending function of CameraViewfinder.requestSurfaceAsync to request a Surface by sending a androidx.camera.viewfinder.surface.ViewfinderSurfaceRequest.

Summary

Public functions

suspend Surface
CameraViewfinder.requestSurface(
    viewfinderSurfaceRequest: ViewfinderSurfaceRequest
)
suspend Surface
CameraViewfinder.requestSurface(
    viewfinderSurfaceRequest: ViewfinderSurfaceRequest
)

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

Public functions

suspend fun CameraViewfinder.requestSurface(
    viewfinderSurfaceRequest: ViewfinderSurfaceRequest
): Surface
suspend fun CameraViewfinder.requestSurface(
    viewfinderSurfaceRequest: ViewfinderSurfaceRequest
): Surface