6.0.0 • Published 6 days ago
@falconeta/capacitor-shake v6.0.0
@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> |