capacitor-gyroscope
v0.0.4
Published
Gyroscope description
Readme
capacitor-gyroscope
Gyroscope description
Install
npm install capacitor-gyroscope
npx cap syncAPI
start(...)
start(updateInterval: number, callback: MotionCallback) => Promise<string>| Param | Type |
| -------------------- | --------------------------------------------------------- |
| updateInterval | number |
| callback | MotionCallback |
Returns: Promise<string>
stop()
stop() => voidInterfaces
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
