Camera2CameraFactory

class Camera2CameraFactory : CameraFactory
kotlin.Any
   ↳ androidx.camera.camera2.internal.Camera2CameraFactory

The factory class that creates Camera2CameraImpl instances.

Summary

Public constructors

<init>(@NonNull context: Context)

Creates a Camera2 implementation of CameraFactory

Public methods

String?

MutableSet<String!>

CameraInternal
getCamera(@NonNull cameraId: String)

LensFacingCameraIdFilter

Public constructors

<init>

Camera2CameraFactory(@NonNull context: Context)

Creates a Camera2 implementation of CameraFactory

Public methods

cameraIdForLensFacing

@Nullable fun cameraIdForLensFacing(lensFacing: Int): String?

getAvailableCameraIds

@NonNull fun getAvailableCameraIds(): MutableSet<String!>

getCamera

@NonNull fun getCamera(@NonNull cameraId: String): CameraInternal

getLensFacingCameraIdFilter

@NonNull fun getLensFacingCameraIdFilter(lensFacing: Int): LensFacingCameraIdFilter