public final class

ConcurrentCamera.SingleCameraConfig

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.ConcurrentCamera.SingleCameraConfig

Overview

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 ConcurrentCamera.SingleCameraConfig represents a single camera.

Summary

Constructors
publicSingleCameraConfig(CameraSelector cameraSelector, UseCaseGroup useCaseGroup, CompositionSettings compositionSettings, LifecycleOwner lifecycleOwner)

Constructor of a ConcurrentCamera.SingleCameraConfig for concurrent cameras.

publicSingleCameraConfig(CameraSelector cameraSelector, UseCaseGroup useCaseGroup, LifecycleOwner lifecycleOwner)

Constructor of a ConcurrentCamera.SingleCameraConfig for concurrent cameras.

Methods
public CameraSelectorgetCameraSelector()

Returns CameraSelector.

public CompositionSettingsgetCompositionSettings()

Returns CompositionSettings.

public LifecycleOwnergetLifecycleOwner()

Returns LifecycleOwner.

public UseCaseGroupgetUseCaseGroup()

Returns UseCaseGroup.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

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

Constructor of a ConcurrentCamera.SingleCameraConfig for concurrent cameras.

Parameters:

cameraSelector: CameraSelector.
useCaseGroup: UseCaseGroup.
lifecycleOwner: LifecycleOwner.

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

Constructor of a ConcurrentCamera.SingleCameraConfig for concurrent cameras.

Parameters:

cameraSelector: CameraSelector.
useCaseGroup: UseCaseGroup.
compositionSettings: CompositionSettings.
lifecycleOwner: LifecycleOwner.

Methods

public CameraSelector getCameraSelector()

Returns CameraSelector.

Returns:

CameraSelector instance.

public LifecycleOwner getLifecycleOwner()

Returns LifecycleOwner.

Returns:

LifecycleOwner instance.

public UseCaseGroup getUseCaseGroup()

Returns UseCaseGroup.

Returns:

UseCaseGroup instance.

public CompositionSettings getCompositionSettings()

Returns CompositionSettings.

Returns:

CompositionSettings instance.