ConcurrentCamera.SingleCameraConfig


class ConcurrentCamera.SingleCameraConfig


Configuration for a single camera in concurrent camera mode, including CameraSelector, LifecycleOwner and UseCaseGroup.

The configuration is used to bring up a lifecycle-aware camera with UseCase bound. This class can used to bind concurrent cameras to LifecycleOwner, each SingleCameraConfig represents a single camera.

Summary

Public constructors

SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    lifecycleOwner: LifecycleOwner
)

Constructor of a SingleCameraConfig for concurrent cameras.

SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    compositionSettings: CompositionSettings,
    lifecycleOwner: LifecycleOwner
)

Constructor of a SingleCameraConfig for concurrent cameras.

Public constructors

SingleCameraConfig

Added in 1.3.0
SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    lifecycleOwner: LifecycleOwner
)

Constructor of a SingleCameraConfig for concurrent cameras.

Parameters
cameraSelector: CameraSelector

CameraSelector.

useCaseGroup: UseCaseGroup

UseCaseGroup.

lifecycleOwner: LifecycleOwner

LifecycleOwner.

SingleCameraConfig

Added in 1.5.0-alpha04
SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    compositionSettings: CompositionSettings,
    lifecycleOwner: LifecycleOwner
)

Constructor of a SingleCameraConfig for concurrent cameras.

Parameters
cameraSelector: CameraSelector

CameraSelector.

useCaseGroup: UseCaseGroup

UseCaseGroup.

compositionSettings: CompositionSettings

CompositionSettings.

lifecycleOwner: LifecycleOwner

LifecycleOwner.

Public functions

getCameraSelector

Added in 1.3.0
fun getCameraSelector(): CameraSelector

Returns CameraSelector.

Returns
CameraSelector

CameraSelector instance.

getCompositionSettings

Added in 1.5.0-alpha04
fun getCompositionSettings(): CompositionSettings

Returns CompositionSettings.

getLifecycleOwner

Added in 1.3.0
fun getLifecycleOwner(): LifecycleOwner

Returns LifecycleOwner.

Returns
LifecycleOwner

LifecycleOwner instance.

getUseCaseGroup

Added in 1.3.0
fun getUseCaseGroup(): UseCaseGroup

Returns UseCaseGroup.

Returns
UseCaseGroup

UseCaseGroup instance.