Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class Picture(val mimeType: MimeType = ImageCaptureDefault.mimeType)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

OpenGL pipeline supported dynamic range format

Functions

Link copied to clipboard
fun createCameraImageAnalyser(ratioDeprecated: Int? = null, ratio: ResolutionSelector? = null): ImageAnalysis

Creates an ImageAnalysis object for a given resolution and format. This builds a UseCase that's used with the cameraProvider and is used to process the frames that are captured

Link copied to clipboard
Link copied to clipboard

Util function to get a camera provider, specially since the get() operation is blocking and can throw exception (although it might be very rare) suspendCoroutine is used to treat this blocking and synchronous get() call to an asynchronous call that can be used with coroutines

Link copied to clipboard

This function is used to calculate the size of a Box (our camera preview) after scaling it down to be fitted in a Container while preserving the aspect ration of the Box

Link copied to clipboard
fun ImageCapture.takePic(ctx: Context, saveInStorage: Boolean, onImageSaved: (picture: Picture) -> Unit)
Link copied to clipboard
fun Camera.toggleFlash(isFlashEnabled: Boolean)
Link copied to clipboard
Link copied to clipboard