Register now for Android Dev Summit 2019!

FlashMode

class FlashMode
kotlin.Any
   ↳ kotlin.Enum<androidx.camera.core.FlashMode>
   ↳ androidx.camera.core.FlashMode

The flash mode options when taking a picture using ImageCapture.

Summary

Enum values

Auto flash.

No flash.

Always flash.

Enum values

AUTO

enum val AUTO : FlashMode

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

OFF

enum val OFF : FlashMode

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

ON

enum val ON : FlashMode

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