Skip to content

Capacitor Plugin to detect when a physical device performs a shake gesture

Notifications You must be signed in to change notification settings

Cap-go/capacitor-shake

Repository files navigation

@capgo/capacitor-shake

Capgo - Instant updates for capacitor

Detect shake gesture in device

Install

npm install @capgo/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>

About

Capacitor Plugin to detect when a physical device performs a shake gesture

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •