1. Remove useless GetLastResult func.
2. SetAutoFocusArea(Point pos) can't throw exception to its caller.
Change-Id: I0929de4d030c884e4b1107d7d1d3d1f0b9646369
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
private bool IsFeatureSupported(IsSupportedDelegate func)
{
- bool ret = func(_camera.GetHandle());
-
- CameraErrorFactory.ThrowIfError(ErrorFacts.GetLastResult(), "Failed to check feature is suported or not.");
-
- return ret;
+ return func(_camera.GetHandle());
}
private bool CheckRangeValid(GetRangeDelegate func)
public void SetAutoFocusArea(Point pos)
{
- SetAutoFocusArea(pos.X, pos.Y);
+ CameraErrorFactory.ThrowIfError(Interop.CameraSettings.SetAutoFocusArea(_camera.GetHandle(), pos.X, pos.Y),
+ "Failed to set the autofocus area.");
}
/// <summary>