ly.img.android.acs / Camera / setFlashMode

setFlashMode

@Nullable synchronized fun setFlashMode(mode: FlashMode): FlashMode

Try to set a flash mode and take a fallback mode if not supported by current Camera.

Parameters

mode - FlashMode: flash mode.

Return
FlashMode: return the accepted mode, it can be the same as requested or a supported fallback mode.