Detect shake gesture in device
npm install @capgo/capacitor-shake
npx cap sync
addListener(eventName: "shake", listenerFunc: () => void) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
'shake' |
listenerFunc |
() => void |
Returns: Promise<PluginListenerHandle>
Prop | Type |
---|---|
remove |
() => Promise<void> |