/// <summary> /// Stops camera auto focusing. /// The camera must be in the <see cref="CameraState.Preview"/> or the <see cref="CameraState.Captured"/> state. /// </summary> /// <since_tizen> 3 </since_tizen> /// <privilege> /// http://tizen.org/privilege/camera /// </privilege> /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception> /// <exception cref="NotSupportedException">In case of this feature is not supported.</exception> /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception> /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception> public void StopFocusing() { ValidateState(CameraState.Preview, CameraState.Captured); CameraErrorFactory.ThrowIfError(Native.CancelFocusing(_handle), "Failed to cancel the camera focus."); }
/// <summary> /// Stops camera auto focusing. /// The camera must be in the <see cref="CameraState.Preview"/> or the <see cref="CameraState.Captured"/> state. /// </summary> /// <since_tizen> 3 </since_tizen> /// <privilege> http://tizen.org/privilege/camera </privilege> /// <feature> http://tizen.org/feature/camera </feature> /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception> /// <exception cref="NotSupportedException">In case of this feature is not supported.</exception> /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception> /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception> public void StopFocusing() { ValidateState(CameraState.Preview, CameraState.Captured); Native.CancelFocusing(_handle).ThrowIfFailed("Failed to cancel the camera focus."); }