@walletfactory/capacitor-plugin-shake
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

capacitor-plugin-shake

Shake motion

Install

npm install capacitor-plugin-shake
npx cap sync

API

addListener(...)

addListener(eventName: 'shaked', listenerFunc: ShakedListener) => Promise<PluginListenerHandle> & PluginListenerHandle

Add a listener for device shaked motion

Param Type
eventName "shaked"
listenerFunc () => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


start()

start() => Promise<void>

Start shake wathing


stop()

stop() => Promise<void>

Stop shake wathing


echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>

Test echo

Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


removeAllListeners()

removeAllListeners() => Promise<void>

Remove all the listeners that are attached to this plugin.


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Readme

Keywords

Package Sidebar

Install

npm i @walletfactory/capacitor-plugin-shake

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.91 MB

Total Files

22

Last publish

Collaborators

  • walletfactory-keeper