AVCamManual.AVCamManualCameraViewController.OnChangeISOClicked C# (CSharp) Method

OnChangeISOClicked() private method

private OnChangeISOClicked ( NSObject sender ) : void
sender NSObject
return void
		public void OnChangeISOClicked (NSObject sender)
		{
			var control = (UISlider)sender;
			NSError error = null;

			if (VideoDevice.LockForConfiguration (out error)) {
				VideoDevice.LockExposure (AVCaptureDevice.ExposureDurationCurrent, control.Value, null);
				VideoDevice.UnlockForConfiguration ();
			} else {
				Console.WriteLine ($"Could not lock device for configuration: {error}");
			}
		}