CameraXConfig
class CameraXConfig : TargetConfig<CameraX!>
kotlin.Any | |
↳ | androidx.camera.core.CameraXConfig |
A configuration for adding implementation and user-specific behavior to CameraX.
CameraXConfig provides customizable options for camera provider instances that persist for the lifetime of the provider.
An implementation of CameraXConfig can be provided by subclassing the Application
object and implementing CameraXConfig.Provider
. Alternatively, other methods configuration exist such as androidx.camera.lifecycle.ProcessCameraProvider#configureInstance(CameraXConfig)
. Examples of how this is used can be found in the androidx.camera.lifecycle
package.
Applications can create and use the of CameraXConfig provided in androidx.camera.camera2
.
Summary
Nested classes | |
---|---|
A builder for generating |
|
abstract |
An interface which can be implemented to provide the configuration for CameraX. |
Public methods | |
---|---|
CameraSelector? |
getAvailableCamerasLimiter(@Nullable valueIfMissing: CameraSelector?) Returns the |
Int |
Returns the minimum logging level. |
Public methods
getAvailableCamerasLimiter
@Nullable fun getAvailableCamerasLimiter(@Nullable valueIfMissing: CameraSelector?): CameraSelector?
Returns the CameraSelector
used to determine the available cameras.