@falconeta/capacitor-shake
v6.0.0
Published
Detect shake gesture in device
Downloads
4
Maintainers
Readme
@falconeta/capacitor-shake
Detect shake gesture in device
Install
npm install @falconeta/capacitor-shake
npx cap sync
API
addListener('shake', ...)
addListener(eventName: "shake", listenerFunc: () => void) => Promise<PluginListenerHandle>
| Param | Type |
| ------------------ | -------------------------- |
| eventName
| 'shake' |
| listenerFunc
| () => void |
Returns: Promise<PluginListenerHandle>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |