UNPKG

test-isc

Version:

An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.

44 lines (43 loc) 1.19 kB
/** * Check to see if the Haptic Plugin is available * @return Returns `true` or false if the plugin is available */ /** * Trigger a selection changed haptic event. Good for one-time events * (not for gestures) */ var hapticSelection = function () { var engine = window.TapticEngine; if (engine) { engine.selection(); } }; /** * Tell the haptic engine that a gesture for a selection change is starting. */ var hapticSelectionStart = function () { var engine = window.TapticEngine; if (engine) { engine.gestureSelectionStart(); } }; /** * Tell the haptic engine that a selection changed during a gesture. */ var hapticSelectionChanged = function () { var engine = window.TapticEngine; if (engine) { engine.gestureSelectionChanged(); } }; /** * Tell the haptic engine we are done with a gesture. This needs to be * called lest resources are not properly recycled. */ var hapticSelectionEnd = function () { var engine = window.TapticEngine; if (engine) { engine.gestureSelectionEnd(); } }; export { hapticSelectionChanged as a, hapticSelectionEnd as b, hapticSelection as c, hapticSelectionStart as h };