shake-observer
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

ShakeObserver

基于devicemotion事件,提供监听设备摇动的能力

安装

$ npm install shake-observer

使用

import ShakeObserver from 'shake-observer'
 
const observer = new ShakeObserver(e => {
  // do something
})
 
// 取消监听
observer.disconnect()

Readme

Keywords

Package Sidebar

Install

npm i shake-observer

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

7.32 kB

Total Files

7

Last publish

Collaborators

  • ifcheng