@@ -12,15 +12,20 @@ <h1>Taptic Engine</h1>
1212 < p class ="event listening "> Connecting to Device</ p >
1313 < p class ="event received "> Device is Ready</ p >
1414
15- < h3 > Unofficial API (iPhone > = 6s)</ h3 >
15+ < h2 > Unofficial API (iPhone > = 6s)</ h2 >
1616 < button ontouchstart ="weakBoom() "> weak boom ('Peek')</ button > < br /> < br />
1717 < button ontouchstart ="strongBoom() "> strong boom ('Pop')</ button > < br /> < br />
1818 < button ontouchstart ="burst() "> burst ('Nope!')</ button > < br /> < br />
1919
20- < h3 > Official API (iPhone > = 7)</ h3 >
20+ < h2 > Official API (iPhone > = 7)</ h2 >
2121 < button ontouchstart ="notification('error') "> notification</ button > < br /> < br />
2222 < button ontouchstart ="selection() "> selection</ button > < br /> < br />
2323 < button ontouchstart ="impact('heavy') "> impact</ button > < br /> < br />
24+
25+ < h3 > Gesture selection</ h3 >
26+ < button ontouchstart ="gestureSelectionStart() "> start</ button >
27+ < button ontouchstart ="gestureSelectionChanged() "> changes</ button >
28+ < button ontouchstart ="gestureSelectionEnd() "> end</ button > < br /> < br />
2429 </ div >
2530</ div >
2631< script type ="text/javascript " src ="cordova.js "> </ script >
@@ -74,6 +79,25 @@ <h3>Official API (iPhone >= 7)</h3>
7479 } , onSuccess , onError ) ;
7580 }
7681 }
82+
83+ function gestureSelectionStart ( ) {
84+ if ( window . TapticEngine ) {
85+ TapticEngine . gestureSelectionStart ( onSuccess , onError ) ;
86+ }
87+ }
88+
89+ function gestureSelectionChanged ( ) {
90+ if ( window . TapticEngine ) {
91+ TapticEngine . gestureSelectionChanged ( onSuccess , onError ) ;
92+ }
93+ }
94+
95+ function gestureSelectionEnd ( ) {
96+ if ( window . TapticEngine ) {
97+ TapticEngine . gestureSelectionEnd ( onSuccess , onError ) ;
98+ }
99+ }
100+
77101</ script >
78102</ body >
79103</ html >
0 commit comments