From 6d4ac16b8ba5a17e1d27b8416b9eb7062ac93435 Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Mon, 3 Jul 2017 17:01:15 +0900 Subject: [PATCH] Add API level Change-Id: I4e34cf67594664dd07588e5d9cc6de12b1a63fcb Signed-off-by: pr.jung --- src/Tizen.System.Feedback/Feedback/Feedback.cs | 5 ++++- src/Tizen.System.Feedback/Feedback/FeedbackType.cs | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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, } } -- 2.7.4