public interface

CameraFactory.Provider

 androidx.camera.core.impl.CameraFactory.Provider

Overview

Interface for deferring creation of a CameraFactory.

Summary

Methods
public CameraFactorynewInstance(Context context, CameraThreadConfig threadConfig, CameraSelector availableCamerasLimiter, long cameraOpenRetryMaxTimeoutInMs)

Creates a new, initialized instance of a CameraFactory.

Methods

public CameraFactory newInstance(Context context, CameraThreadConfig threadConfig, CameraSelector availableCamerasLimiter, long cameraOpenRetryMaxTimeoutInMs)

Creates a new, initialized instance of a CameraFactory.

Parameters:

context: the android context
threadConfig: the thread config to run the camera operations
availableCamerasLimiter: a CameraSelector used to specify which cameras will be loaded and available to CameraX.
cameraOpenRetryMaxTimeoutInMs: the max timeout for camera open retry.

Returns:

the factory instance