1.0.1 • Published 4 years ago
lesca-sensor-oc v1.0.1
Installation
$ npm install lesca-sensor-oc --save
Usage
import OC from 'lesca-sensor-oc';
OC.init({
callback: (e) => {
console.log(e); // 0, 90, -90
},
});
Methods
method | options | description | default |
---|---|---|---|
init({callback}) | callback | get angle when orentation change | |
destory() | remove event |
1.0.1
4 years ago