Builder
interface Builder<B : Any!>
androidx.camera.core.impl.CameraConfig.Builder |
Builder for creating a CameraConfig
.
Summary
Public methods | |
---|---|
abstract B |
setCompatibilityId(@NonNull identifier: Identifier) Sets compatibility |
abstract B |
setSessionProcessor(@NonNull sessionProcessor: SessionProcessor) Sets the session processor which will transform the stream configurations and will perform the repeating request and still capture request when being requested by CameraX. |
abstract B |
setUseCaseCombinationRequiredRule(useCaseCombinationRequiredRule: Int) Sets use case combination required rule to this configuration. |
abstract B |
setUseCaseConfigFactory(@NonNull factory: UseCaseConfigFactory) Sets a |
abstract B |
setZslDisabled(disabled: Boolean) Sets zsl disabled or not. |
Public methods
setCompatibilityId
@NonNull abstract fun setCompatibilityId(@NonNull identifier: Identifier): B
Sets compatibility Identifier
for the camera config.
setSessionProcessor
@NonNull abstract fun setSessionProcessor(@NonNull sessionProcessor: SessionProcessor): B
Sets the session processor which will transform the stream configurations and will perform the repeating request and still capture request when being requested by CameraX.
setUseCaseCombinationRequiredRule
@NonNull abstract fun setUseCaseCombinationRequiredRule(useCaseCombinationRequiredRule: Int): B
Sets use case combination required rule to this configuration.
setUseCaseConfigFactory
@NonNull abstract fun setUseCaseConfigFactory(@NonNull factory: UseCaseConfigFactory): B
Sets a UseCaseConfigFactory
for the camera config.
setZslDisabled
@NonNull abstract fun setZslDisabled(disabled: Boolean): B
Sets zsl disabled or not. If disabled is true, zero-shutter lag should be disabled. Otherwise, zero-shutter lag should not be disabled. However, enabling zero-shutter lag needs other conditions e.g. flash mode OFF, so setting to false doesn't guarantee zero-shutter lag to be always ON.