setupCameraX

fun ArcActivity<*>.setupCameraX(view: PreviewView, lensFacing: Int = LENS_FACING_BACK): CameraXSetup

Function to configure CameraXSetup from given ArcActivity and also adding androidx.camera.core.Preview

Receiver

ArcActivity

Return

instance of CameraXSetup

Parameters

view

instance of PreviewView from the given ArcActivity

lensFacing

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


fun ArcFragment<*>.setupCameraX(view: PreviewView, lensFacing: Int = LENS_FACING_BACK): CameraXSetup

Function to configure CameraXSetup from given ArcFragment and also adding androidx.camera.core.Preview

Receiver

ArcFragment

Return

instance of CameraXSetup

Parameters

view

instance of PreviewView from the given ArcFragment

lensFacing

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