public @interface

ImageCapture.FlashMode

implements java.lang.annotation.Annotation

 androidx.camera.core.ImageCapture.FlashMode

Overview

The flash mode options when taking a picture using ImageCapture.

Applications can check if there is a flash unit via CameraInfo.hasFlashUnit() and update UI component if necessary. If there is no flash unit, then the FlashMode set to ImageCapture.setFlashMode(int) will take no effect for the subsequent photo capture requests and they will act like ImageCapture.FLASH_MODE_OFF.

When the torch is enabled via CameraControl.enableTorch(boolean), the torch will remain enabled during photo capture regardless of flash mode setting. When the torch is disabled, flash will function as specified by ImageCapture.setFlashMode(int).

Summary