MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / hapticAvailable

Function hapticAvailable

core/src/utils/native/haptic.ts:139–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 * @return Returns `true` or false if the plugin is available
138 */
139export const hapticAvailable = (): boolean => {
140 return HapticEngine.available();
141};
142
143/**
144 * Trigger a selection changed haptic event. Good for one-time events

Callers 6

hapticSelectionFunction · 0.85
hapticSelectionStartFunction · 0.85
hapticSelectionChangedFunction · 0.85
hapticSelectionEndFunction · 0.85
hapticNotificationFunction · 0.85
hapticImpactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected