public static class CameraViewfinderExt


Provides a suspending function of CameraViewfinder.requestSurfaceAsync to request a Surface by sending a ViewfinderSurfaceRequest.

Summary

Public fields

static @NonNull CameraViewfinderExt

Public methods

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

Public fields

INSTANCE

Added in 1.4.0-alpha11
public static @NonNull CameraViewfinderExt INSTANCE

Public methods

requestSurface

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