Gyroscope description
npm install capacitor-gyroscope
npx cap sync
start(updateInterval: number, callback: MotionCallback) => Promise<string>
Param | Type |
---|---|
updateInterval |
number |
callback |
MotionCallback |
Returns: Promise<string>
stop() => void
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 |
(motion: Motion | null, err?: any): void