Flags on Android

When customizing capture when Standalone Capture, create a new CaptureConfig, which should be passed as an Intent extra to the StandaloneCaptureActivity, or as an argument to a CaptureImages ActivityResultLauncher.launch() call.

val config = CaptureConfig(
    allowFlashToggling = false,
    enableLongCapture = false
)
final CaptureConfig config = new CaptureConfig(
        false,
        FlashMode.FLASH_MODE_AUTO,
        false,
        true,
        true,
        true,
        true,
        true,
        3,
        false,
        true,
        true,
        true,
        true
);