setCaptureConfiguration

public final Unit setCaptureConfiguration(Context context, CaptureConfiguration captureConfiguration)

Sets configuration for Capture feature.


@Deprecated(message = "Please use setCaptureConfiguration(context, captureConfiguration) which allows instance recreation without having to call releaseCapture()", replaceWith = @ReplaceWith(imports = {}, expression = "setCaptureConfiguration(context, captureConfiguration)"))
public final Unit setCaptureConfiguration(CaptureConfiguration captureConfiguration)

Deprecated

Please use setCaptureConfiguration(context, captureConfiguration) which allows instance recreation without having to call releaseCapture()

Replace with

setCaptureConfiguration(context, captureConfiguration)

Sets configuration for Capture feature. Note that configuration is immutable. releaseCapture needs to be called before passing a new configuration.

Throws

if capture is already configured.