Add API level
authorpr.jung <pr.jung@samsung.com>
Mon, 3 Jul 2017 08:01:15 +0000 (17:01 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 3 Jul 2017 08:01:15 +0000 (17:01 +0900)
Change-Id: I4e34cf67594664dd07588e5d9cc6de12b1a63fcb
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/Tizen.System.Feedback/Feedback/Feedback.cs
src/Tizen.System.Feedback/Feedback/FeedbackType.cs

index 2d85a5c..5bd1d0c 100644 (file)
@@ -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.
         /// </remarks>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="type">Feedback type</param>
         /// <param name="pattern">Feedback pattern string</param>
         /// <returns>Information whether pattern is supported</returns>
@@ -270,6 +271,7 @@ namespace Tizen.System
         /// <remarks>
         /// To play Vibration type, app should have http://tizen.org/privilege/haptic privilege.
         /// </remarks>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="type">Feedback type</param>
         /// <param name="pattern">Feedback pattern string</param>
         /// <exception cref="Exception">Thrown when failed because feedback is not initialized</exception>
@@ -333,6 +335,7 @@ namespace Tizen.System
         /// <remarks>
         /// To stop vibration, app should have http://tizen.org/privilege/haptic privilege.
         /// </remarks>
+        /// <since_tizen> 3 </since_tizen>
         /// <exception cref="Exception">Thrown when failed because feedback is not initialized</exception>
         /// <exception cref="ArgumentException">Thrown when failed because of a invalid arguament</exception>
         /// <exception cref="NotSupportedException">Thrown when failed because device(haptic, sound) or specific pattern is not supported</exception>
@@ -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");
                 }
             }
         }
index c833d97..e387b1c 100644 (file)
@@ -19,19 +19,23 @@ namespace Tizen.System
     /// <summary>
     /// Enumeration for feedback device types.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public enum FeedbackType
     {
         /// <summary>
         ///  Sound and Vibration
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         All = 0,
         /// <summary>
         /// Sound feedback
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Sound = Interop.Feedback.FeedbackType.Sound,
         /// <summary>
         /// Vibration
         /// /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         Vibration = Interop.Feedback.FeedbackType.Vibration,
     }
 }