public static bool TrySetExposureMode (this AVCaptureDevice device, AVCaptureExposureMode mode) { bool isSupported = device.IsExposureModeSupported (mode); if (isSupported) device.ExposureMode = mode; return isSupported; } }