CameraXSetup

constructor(view: PreviewView, lifeCycle: LifecycleOwner, lensFacing: Int)

Parameters

lifeCycle

the LifecycleOwner where the androidx.camera.view.PreviewView is being inflated

view

instance of PreviewView from the given page

lensFacing

Use the Lens Facing back or Front to use for the Camera