-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
43 lines (42 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
interface HapticPlugin {
sendHapticFeedback(
/** Default is 'CONFIRM' */
androidType?:
'CLOCK_TICK'
| 'CONFIRM'
| 'CONTEXT_CLICK'
| 'DRAG_START'
| 'GESTURE_END'
| 'GESTURE_START'
| 'GESTURE_THRESHOLD_ACTIVATE'
| 'GESTURE_THRESHOLD_DEACTIVATE'
| 'KEYBOARD_PRESS'
| 'KEYBOARD_RELEASE'
| 'KEYBOARD_TAP'
| 'LONG_PRESS'
| 'REJECT'
| 'SEGMENT_FREQUENT_TICK'
| 'SEGMENT_TICK'
| 'TEXT_HANDLE_MOVE'
| 'TOGGLE_OFF'
| 'TOGGLE_ON'
| 'VIRTUAL_KEY'
| 'VIRTUAL_KEY_RELEASE',
iosType?:
/** Default is 'Success' */
'ImpactLight'
| 'ImpactMedium'
| 'ImpactHeavy'
| 'ImpactSoft'
| 'ImpactRigid'
| 'Success'
| 'Warning'
| 'Error'
| 'SelectionChanged',
/** Default behavior is to print the error message as a console error. */
errorCallback?: (errorMessage: any) => any
);
}
interface CordovaPlugins {
hapticPlugin: HapticPlugin;
}