on TakePhoto I call this function with the requestBuilder
public void SetAutoFlash(CaptureRequest.Builder requestBuilder) { if (_flashSupported) { requestBuilder.Set(CaptureRequest.ControlAeMode, (int)ControlAEMode.OnAutoFlash); } }
i also make sure that flash is supported on the OpenCamera function
// Check if the flash is supported. var available = (Java.Lang.Boolean)characteristics.Get(CameraCharacteristics.FlashInfoAvailable); _flashSupported = (available == null) ? false : true;
on TakePhoto I call this function with the requestBuilder
public void SetAutoFlash(CaptureRequest.Builder requestBuilder) { if (_flashSupported) { requestBuilder.Set(CaptureRequest.ControlAeMode, (int)ControlAEMode.OnAutoFlash); } }i also make sure that flash is supported on the OpenCamera function
// Check if the flash is supported. var available = (Java.Lang.Boolean)characteristics.Get(CameraCharacteristics.FlashInfoAvailable); _flashSupported = (available == null) ? false : true;