Package-level declarations
Types
Link copied to clipboard
open class AutoFitSurfaceView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0) : SurfaceView
A SurfaceView that can be adjusted to a specified aspect ratio and performs center-crop transformation of input frames.
Link copied to clipboard
class PreviewView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0) : FrameLayout
A FrameLayout containing a preview for IPreviewableSource sources.
Functions
Link copied to clipboard
suspend fun IPreviewableSource.setPreview(viewfinder: CameraViewfinder, previewSize: Size): ViewfinderSurfaceRequest
suspend fun IWithVideoSource.setPreview(viewfinder: CameraViewfinder, previewSize: Size): ViewfinderSurfaceRequest
Set preview on a CameraViewfinder
Link copied to clipboard
suspend fun IPreviewableSource.startPreview(viewfinder: CameraViewfinder, previewSize: Size): ViewfinderSurfaceRequest
suspend fun IWithVideoSource.startPreview(viewfinder: CameraViewfinder, previewSize: Size): ViewfinderSurfaceRequest
Start preview on a CameraViewfinder