From b2cd67e6f215fb1cd815123964de31f8d40b50f8 Mon Sep 17 00:00:00 2001 From: prjung <33618885+prjung@users.noreply.github.com> Date: Tue, 3 Jul 2018 15:56:25 +0900 Subject: [PATCH] [Feedback][Device][Add new vibration feature] (#319) Signed-off-by: pr.jung --- src/Tizen.System.Feedback/Feedback/Feedback.cs | 14 +++++++++++++- src/Tizen.System/Device/Haptic.cs | 13 +++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/Tizen.System.Feedback/Feedback/Feedback.cs b/src/Tizen.System.Feedback/Feedback/Feedback.cs index a9a3f25..20b38fa 100755 --- a/src/Tizen.System.Feedback/Feedback/Feedback.cs +++ b/src/Tizen.System.Feedback/Feedback/Feedback.cs @@ -94,7 +94,10 @@ namespace Tizen.System /// Constructor of Feedback class /// /// 3 - /// Thrown when failed becuase the device (haptic, sound) is not supported. + /// + /// http://tizen.org/feature/feedback.vibration for FeedbackType.Vibration + /// + /// Thrown when failed because the devices (vibration and sound) are not supported. /// Thrown when failed because of a system error. /// http://tizen.org/privilege/haptic /// @@ -228,6 +231,9 @@ namespace Tizen.System /// 3 /// The feedback type. /// The feedback pattern string. + /// + /// http://tizen.org/feature/feedback.vibration for FeedbackType.Vibration + /// /// Information whether a pattern is supported. /// Thrown when failed because the feedback is not initialized. /// Thrown when failed because of an invalid arguament. @@ -293,6 +299,9 @@ namespace Tizen.System /// 3 /// The feedback type. /// The feedback pattern string. + /// + /// http://tizen.org/feature/feedback.vibration for FeedbackType.Vibration + /// /// Thrown when failed because feedback is not initialized. /// Thrown when failed because of an invalid arguament. /// Thrown when failed because the device (haptic, sound) or a specific pattern is not supported. @@ -355,6 +364,9 @@ namespace Tizen.System /// To stop vibration, the application should have http://tizen.org/privilege/haptic privilege. /// /// 3 + /// + /// http://tizen.org/feature/feedback.vibration + /// /// Thrown when failed because the feedback is not initialized. /// Thrown when failed because of an invalid arguament /// Thrown when failed because the device (haptic, sound) or a specific pattern is not supported. diff --git a/src/Tizen.System/Device/Haptic.cs b/src/Tizen.System/Device/Haptic.cs index 4bc49e3..22524df 100755 --- a/src/Tizen.System/Device/Haptic.cs +++ b/src/Tizen.System/Device/Haptic.cs @@ -29,6 +29,13 @@ namespace Tizen.System /// /// http://tizen.org/privilege/haptic /// + /// + /// http://tizen.org/feature/feedback.vibration + /// + /// When an invalid parameter value is set. + /// If the privilege is not set. + /// In case of any system error. + /// The required feature is not supported /// /// /// Console.WriteLine("Total number of Vibrators are: {0}", Tizen.System.Vibrator.NumberOfVibrators); @@ -117,6 +124,9 @@ namespace Tizen.System /// 3 /// The play duration in milliseconds. /// The amount of the intensity variation (0 ~ 100). + /// + /// http://tizen.org/feature/feedback.vibration + /// /// When an invalid parameter value is set. /// If the privilege is not set. /// In case of any system error. @@ -158,6 +168,9 @@ namespace Tizen.System /// This function can be used to stop all the effects started by Vibrate(). /// /// 3 + /// + /// http://tizen.org/feature/feedback.vibration + /// /// In case an invalid vibrator instance is used. /// If the privilege is not set. /// In case of any system error. -- 2.7.4