Camera
XHandler
class CameraXHandler( lifeCycle: LifecycleOwner, view: PreviewView, lensFacing: Int = CameraSelector.LENS_FACING_BACK)
Content copied to clipboard
Handler for CameraX purposes, it included with calculating aspect ratio for the camera. By default, it embedded with Preview use case.
Author
Jimly A.
Since
09-Sep-21
Parameters
lifeCycle
where the CameraX is being called
view
instance of PreviewView in the layout
lensFacing
Use the Lens
Facing back or Front for the cameraX
Constructors
Link copied to clipboard
fun CameraXHandler( lifeCycle: LifecycleOwner, view: PreviewView, lensFacing: Int = CameraSelector.LENS_FACING_BACK)
Content copied to clipboard
Instance of CameraXHandler