4 <name>Tizen.System.Feedback</name>
7 <member name="T:Tizen.System.Constants">
9 The class for constants.
12 <member name="T:Tizen.System.Feedback">
14 The Feedback API provides functions to control haptic and sound.
15 The Feedback API provides the way to play and stop feedback, and get the information whether a specific pattern is supported.
16 Below is the supported pattern string:
51 BluetoothDeviceConnected
52 BluetoothDeviceDisconnected
58 For controlling the haptic device:
59 http://tizen.org/privilege/haptic
60 For controlling the sound, privilege is not needed.
63 Feedback feedback = new Feedback();
64 bool res = feedback.IsSupportedPattern(FeedbackType.Vibration, "Tap");
67 <member name="M:Tizen.System.Feedback.IsSupportedPattern(Tizen.System.FeedbackType,System.String)">
69 Gets the supported information about a specific type and pattern.
72 Now, IsSupportedPattern is not working for FeedbackType.All.
73 This API is working for FeedbackType.Sound and FeedbackType.Vibration only.
74 If you use FeedbackType.All for type parameter, this API will throw ArgumentException.
75 To get the supported information for Vibration type, the application should have http://tizen.org/privilege/haptic privilege.
77 <since_tizen> 3 </since_tizen>
78 <param name="type">The feedback type.</param>
79 <param name="pattern">The feedback pattern string.</param>
80 <returns>Information whether a pattern is supported.</returns>
81 <exception cref="T:System.Exception">Thrown when failed because the feedback is not initialized.</exception>
82 <exception cref="T:System.ArgumentException">Thrown when failed because of an invalid arguament.</exception>
83 <exception cref="T:System.NotSupportedException">Thrown when failed becuase the device (haptic, sound) is not supported.</exception>
84 <exception cref="T:System.UnauthorizedAccessException">Thrown when failed because the access is not granted (No privilege).</exception>
85 <exception cref="T:System.InvalidOperationException">Thrown when failed because of a system error.</exception>
86 <privilege>http://tizen.org/privilege/haptic</privilege>
89 Feedback feedback = new Feedback();
90 bool res = feedback.IsSupportedPattern(FeedbackType.Vibration, "Tap");
94 <member name="M:Tizen.System.Feedback.Play(Tizen.System.FeedbackType,System.String)">
96 Plays a specific feedback pattern.
99 To play Vibration type, app should have http://tizen.org/privilege/haptic privilege.
101 <since_tizen> 3 </since_tizen>
102 <param name="type">The feedback type.</param>
103 <param name="pattern">The feedback pattern string.</param>
104 <exception cref="T:System.Exception">Thrown when failed because feedback is not initialized.</exception>
105 <exception cref="T:System.ArgumentException">Thrown when failed because of an invalid arguament.</exception>
106 <exception cref="T:System.NotSupportedException">Thrown when failed because the device (haptic, sound) or a specific pattern is not supported.</exception>
107 <exception cref="T:System.UnauthorizedAccessException">Thrown when failed because the access is not granted(No privilege)</exception>
108 <exception cref="T:System.InvalidOperationException">Thrown when failed because of a system error.</exception>
109 <privilege>http://tizen.org/privilege/haptic</privilege>
112 Feedback feedback = new Feedback();
113 feedback.Play(FeedbackType.All, "Tap");
117 <member name="M:Tizen.System.Feedback.Stop">
119 Stops to play the feedback.
122 To stop vibration, the application should have http://tizen.org/privilege/haptic privilege.
124 <since_tizen> 3 </since_tizen>
125 <exception cref="T:System.Exception">Thrown when failed because the feedback is not initialized.</exception>
126 <exception cref="T:System.ArgumentException">Thrown when failed because of an invalid arguament</exception>
127 <exception cref="T:System.NotSupportedException">Thrown when failed because the device (haptic, sound) or a specific pattern is not supported.</exception>
128 <exception cref="T:System.UnauthorizedAccessException">Thrown when failed because the access is not granted (No privilege).</exception>
129 <exception cref="T:System.InvalidOperationException">Thrown when failed because of a system error.</exception>
130 <privilege>http://tizen.org/privilege/haptic</privilege>
133 Feedback Feedback1 = new Feedback();
138 <member name="T:Tizen.System.FeedbackPattern">
140 String and enumeration for feedback patterns.
143 <member name="T:Tizen.System.FeedbackType">
145 Enumeration for feedback device types.
147 <since_tizen> 3 </since_tizen>
149 <member name="F:Tizen.System.FeedbackType.All">
153 <since_tizen> 3 </since_tizen>
155 <member name="F:Tizen.System.FeedbackType.Sound">
159 <since_tizen> 3 </since_tizen>
161 <member name="F:Tizen.System.FeedbackType.Vibration">
165 <since_tizen> 3 </since_tizen>