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}");
}
}