CameraXSetup

class CameraXSetup(view: PreviewView, lifeCycle: LifecycleOwner, lensFacing: Int)

CameraXSetup define CameraX configuration and support manipulate its' functionality like adding and removing UseCase

Author

jimlyas

Since

03 Oct 2022

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

Constructors

Link copied to clipboard
constructor(view: PreviewView, lifeCycle: LifecycleOwner, lensFacing: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addUseCase(useCase: UseCase)

Function to add another UseCase to the list of Camera

Link copied to clipboard
fun removeUseCase(useCase: UseCase)

Function to remove UseCase to the list of Camera