nat-sensor-accelerometer

1.0.0-alpha • Public • Published

nat-sensor-accelerometer

Installation

weexpack plugin add nat-sensor-accelerometer
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

// get
Nat.accelerometer.get((err, ret) => {
    console.log(ret)
})

// watch
Nat.accelerometer.watch((err, ret) => {
    console.log(ret)
})

// clearWatch
Nat.accelerometer.clearWatch()

</script>

See the Nat Documentation for more details.

Package Sidebar

Install

npm i nat-sensor-accelerometer

Weekly Downloads

4

Version

1.0.0-alpha

License

MIT

Unpacked Size

68.3 MB

Total Files

838

Last publish

Collaborators

  • natjs