9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-842D8557-076B-4A6E-B823-81164368FD86" xml:lang="en"><title>Disabling |
12 <concept id="GUID-842D8557-076B-4A6E-B823-81164368FD86" xml:lang="en"><title>Disabling |
13 and enabling feedback</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 and enabling feedback</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 <section><title>Disabling and enabling feedback for your application</title><p>If |
14 <section id="GUID-06A4B881-0D03-4AB0-A392-1732F04E367A"><title>Disabling and |
15 you need to disable tactile feedback for any reason (and then possibly re-enable |
15 enabling feedback for your application</title><p>If you need to disable tactile |
16 it later), use the function <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#68dc5cb09c94b8c42e50e2043249b4c4" format="application/java-archive"><codeph>SetFeedbackEnabledForThisApp</codeph></xref>. </p><p>You can also |
16 feedback for any reason (and then possibly re-enable it later), use the function <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#68dc5cb09c94b8c42e50e2043249b4c4" format="application/java-archive"><codeph>SetFeedbackEnabledForThisApp</codeph></xref>. </p><p>You can also use an <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#f79365f3d12d54496715be253759dec6" format="application/java-archive">overloaded version</xref> of the function for disabling only audio or vibration |
17 use an <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#f79365f3d12d54496715be253759dec6" format="application/java-archive">overloaded |
17 based feedback.</p><p>Feedback may need to be disabled for example during |
18 version</xref> of the function for disabling only audio or vibration based |
18 video recording in camera applications, because otherwise device vibration |
19 feedback.</p><p>Feedback may need to be disabled for example during video |
19 sounds may be recorded along the video clip.</p><note><p>You can and are recommended |
20 recording in camera applications, because otherwise device vibration sounds |
|
21 may be recorded along the video clip.</p><note><p>You can and are recommended |
|
22 to use the API normally for area registry updates even when feedback is disabled. |
20 to use the API normally for area registry updates even when feedback is disabled. |
23 This way feedback can be turned on successfully even if there was a layout |
21 This way feedback can be turned on successfully even if there was a layout |
24 or view change while feedback was disabled. </p><p>The only exceptions to |
22 or view change while feedback was disabled. </p><p>The only exceptions to |
25 this are those applications which will never enable the feedback again (for |
23 this are those applications which will never enable the feedback again (for |
26 example, in some games you might do this if you don’t want feedback, or use |
24 example, in some games you might do this if you don’t want feedback, or use |
27 the device vibration for effects in your game).</p></note><p>Any application |
25 the device vibration for effects in your game).</p></note><p>Any application |
28 can only disable the feedback for itself, i.e. this API provides no means |
26 can only disable the feedback for itself, which means this API provides no |
29 for globally disabling feedback. </p><p>The user can still disable all the |
27 means for globally disabling feedback. </p><p>The user can still disable all |
30 feedback by changing device feedback settings. Moreover, feedback can be globally |
28 the feedback by changing device feedback settings. Moreover, feedback can |
31 disabled by the feedback system for e.g. during ongoing telephone calls (this |
29 be globally disabled by the feedback system for e.g. during ongoing telephone |
32 depends on the device configuration).</p></section> |
30 calls (this depends on the device configuration).</p></section> |
33 <section><title>Disabling and enabling feedback for a control</title><p>Use |
31 <section id="GUID-CB48CD7D-9577-47A7-82D4-910960E6B140"><title>Disabling and |
34 the funtion <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#3430455447f3294fde61a91c545c7847" format="application/java-archive"><codeph>EnableFeedbackForControl</codeph></xref> to disable and enable feedback for a control.</p><p>You |
32 enabling feedback for a control</title><p>Use the function <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#3430455447f3294fde61a91c545c7847" format="application/java-archive"><codeph>EnableFeedbackForControl</codeph></xref> to disable and enable feedback |
35 can also use an <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#087da56921ef7f5deca103ad568efa8d" format="application/java-archive">overloaded |
33 for a control.</p><p>You can also use an <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMTouchFeedback.html#087da56921ef7f5deca103ad568efa8d" format="application/java-archive">overloaded version</xref> of this function to disable or enable only audio |
36 version</xref> of this function to disable or enable only audio or vibration |
34 or vibration based feedback.</p></section> |
37 based feedback.</p></section> |
|
38 </conbody></concept> |
35 </conbody></concept> |