bokehImageCapture = BokehImageCaptureExtender.create(builder) // Query if extension is available (optional). if (bokehImageCapture.isExtensionAvailable()) { // Enable the extension if available. bokehImageCapture.enableExtension() } val config = builder.build() val imageCapture = ImageCapture(config) CameraX.bindToLifecycle(this, imageCapture) }