AVCamManual.AVCamManualCameraViewController.OnChangeLensPositionClicked C# (CSharp) Метод

OnChangeLensPositionClicked() приватный Метод

private OnChangeLensPositionClicked ( NSObject sender ) : void
sender NSObject
Результат void
		public void OnChangeLensPositionClicked (NSObject sender)
		{
			var control = (UISlider)sender;
			NSError error = null;

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