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)

Creates a new, initialized instance of a CameraFactory.

Methods

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

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.

Returns:

the factory instance