From: pr.jung Date: Mon, 3 Jul 2017 08:01:15 +0000 (+0900) Subject: Add API level X-Git-Tag: submit/trunk/20170823.075128~109^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d4ac16b8ba5a17e1d27b8416b9eb7062ac93435;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add API level Change-Id: I4e34cf67594664dd07588e5d9cc6de12b1a63fcb Signed-off-by: pr.jung --- diff --git a/src/Tizen.System.Feedback/Feedback/Feedback.cs b/src/Tizen.System.Feedback/Feedback/Feedback.cs index 2d85a5c..5bd1d0c 100644 --- a/src/Tizen.System.Feedback/Feedback/Feedback.cs +++ b/src/Tizen.System.Feedback/Feedback/Feedback.cs @@ -206,6 +206,7 @@ namespace Tizen.System /// If you use FeedbackType.All for type parameter, this API will throw ArgumentException. /// To get supported information for Vibration type, app should have http://tizen.org/privilege/haptic privilege. /// + /// 3 /// Feedback type /// Feedback pattern string /// Information whether pattern is supported @@ -270,6 +271,7 @@ namespace Tizen.System /// /// To play Vibration type, app should have http://tizen.org/privilege/haptic privilege. /// + /// 3 /// Feedback type /// Feedback pattern string /// Thrown when failed because feedback is not initialized @@ -333,6 +335,7 @@ namespace Tizen.System /// /// To stop vibration, app should have http://tizen.org/privilege/haptic privilege. /// + /// 3 /// Thrown when failed because feedback is not initialized /// Thrown when failed because of a invalid arguament /// Thrown when failed because device(haptic, sound) or specific pattern is not supported @@ -364,7 +367,7 @@ namespace Tizen.System throw new UnauthorizedAccessException("Access is not granted"); case Interop.Feedback.FeedbackError.OperationFailed: default: - throw new InvalidOperationException("Failed to play pattern"); + throw new InvalidOperationException("Failed to stop pattern"); } } } diff --git a/src/Tizen.System.Feedback/Feedback/FeedbackType.cs b/src/Tizen.System.Feedback/Feedback/FeedbackType.cs index c833d97..e387b1c 100644 --- a/src/Tizen.System.Feedback/Feedback/FeedbackType.cs +++ b/src/Tizen.System.Feedback/Feedback/FeedbackType.cs @@ -19,19 +19,23 @@ namespace Tizen.System /// /// Enumeration for feedback device types. /// + /// 3 public enum FeedbackType { /// /// Sound and Vibration /// + /// 3 All = 0, /// /// Sound feedback /// + /// 3 Sound = Interop.Feedback.FeedbackType.Sound, /// /// Vibration /// /// + /// 3 Vibration = Interop.Feedback.FeedbackType.Vibration, } }