Package com. devbase. presentation. camerax

Defines cameraX implementation and common use cases with it

Types

Link copied to clipboard
class CameraXHandler(    lifeCycle: LifecycleOwner,     view: PreviewView,     lensFacing: Int = CameraSelector.LENS_FACING_BACK)

Handler for CameraX purposes, it included with calculating aspect ratio for the camera. By default, it embedded with Preview use case.

Link copied to clipboard
class QrScanner(handler: CameraXHandler, action: (Boolean, String) -> Unit) : ImageAnalysis.Analyzer

Handler class for Scanning QR Code purposes

Link copied to clipboard
class StoreImage(handler: CameraXHandler) : ImageCapture.OnImageSavedCallback

Use case of androidx.camera.core.CameraX to store image