The Android Developer Challenge is back! Submit your idea before December 2.

FlashMode

public final enum FlashMode
extends Enum<FlashMode>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.core.FlashMode>
     ↳ androidx.camera.core.FlashMode


The flash mode options when taking a picture using ImageCapture.

Summary

Enum values

FlashMode  AUTO

Auto flash. 

FlashMode  OFF

No flash. 

FlashMode  ON

Always flash. 

Public methods

static FlashMode valueOf(String name)
static final FlashMode[] values()

Inherited methods

Enum values

AUTO

public static final FlashMode AUTO

Auto flash. The flash will be used according to the camera system's determination when taking a picture.

OFF

public static final FlashMode OFF

No flash. The flash will never be used when taking a picture.

ON

public static final FlashMode ON

Always flash. The flash will always be used when taking a picture.

Public methods

valueOf

public static FlashMode valueOf (String name)

Parameters
name String

Returns
FlashMode

values

public static final FlashMode[] values ()

Returns
FlashMode[]