capacitor-gyroscope
v0.0.4
Published
Gyroscope description
Downloads
5
Readme
capacitor-gyroscope
Gyroscope description
Install
npm install capacitor-gyroscope
npx cap sync
API
start(...)
start(updateInterval: number, callback: MotionCallback) => Promise<string>
| Param | Type |
| -------------------- | --------------------------------------------------------- |
| updateInterval
| number |
| callback
| MotionCallback |
Returns: Promise<string>
stop()
stop() => void
Interfaces
Motion
| Prop | Type | Description | Since |
| ----------- | ------------------- | ------------ | ----- |
| yaw
| number | Device Yaw | 1.0.0 |
| pitch
| number | Device Pitch | 1.0.0 |
| roll
| number | Device Roll | 1.0.0 |
Type Aliases
MotionCallback
(motion: Motion | null, err?: any): void