setFlashMode

abstract fun setFlashMode(@NonNull flashMode: FlashMode)

Set the camera flash mode. It's best to call getAvailableFlashModes to make sure that the camera supports this flash mode.

Parameters

flashMode

the flash mode to use