UseCase.InteropConfigurable


interface UseCase.InteropConfigurable<B : UseCase.InteropConfigurable<B!>?>


Applies camera-backend-specific options.

Implementations (such as UseCase builders) support applying backend-specific configurations, such as Camera2 capture request options.

Parameters
<B : UseCase.InteropConfigurable<B!>?>

the type of the builder implementing this interface

Summary

Public functions

B
setInterop(configurator: InteropConfigurator<B!>)

Applies interoperability configuration to this builder.

Public functions

setInterop

Added in 1.7.0-alpha03
fun setInterop(configurator: InteropConfigurator<B!>): B

Applies interoperability configuration to this builder.

To configure Camera2 options, use Camera2Interop.forUseCase(configurator) (from the camera-camera2 artifact) to create a configurator, then pass it to this method.

Note: Using Camera2 interop options can override internal CameraX configurations. If an option configured via interop conflicts with options required by CameraX internally, the option from Camera2Interop will override, which may result in unexpected behavior.

Parameters
configurator: InteropConfigurator<B!>

the configurator that sets the interoperability options

Returns
B

this builder