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