public static class CameraViewfinderExt


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

Summary

Public fields

static @NonNull CameraViewfinderExt

Public methods

final @NonNull Surface
requestSurface(
    @NonNull CameraViewfinder receiver,
    @NonNull ViewfinderSurfaceRequest viewfinderSurfaceRequest
)
final @NonNull Surface
requestSurface(
    @NonNull CameraViewfinder receiver,
    @NonNull ViewfinderSurfaceRequest viewfinderSurfaceRequest
)

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

Public fields

INSTANCE

Added in 1.4.0-alpha10
public static @NonNull CameraViewfinderExt INSTANCE

Public methods

requestSurface

public final @NonNull Surface requestSurface(
    @NonNull CameraViewfinder receiver,
    @NonNull ViewfinderSurfaceRequest viewfinderSurfaceRequest
)

requestSurface

public final @NonNull Surface requestSurface(
    @NonNull CameraViewfinder receiver,
    @NonNull ViewfinderSurfaceRequest viewfinderSurfaceRequest
)