1.0.1 • Published 4 years ago

@walletfactory/capacitor-plugin-shake v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

ParamType
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

ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


removeAllListeners()

removeAllListeners() => Promise<void>

Remove all the listeners that are attached to this plugin.


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
1.0.1

4 years ago

1.0.0

4 years ago