0.0.4 • Published 1 year ago

capacitor-gyroscope v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

capacitor-gyroscope

Gyroscope description

Install

npm install capacitor-gyroscope
npx cap sync

API

start(...)

start(updateInterval: number, callback: MotionCallback) => Promise<string>
ParamType
updateIntervalnumber
callbackMotionCallback

Returns: Promise<string>


stop()

stop() => void

Interfaces

Motion

PropTypeDescriptionSince
yawnumberDevice Yaw1.0.0
pitchnumberDevice Pitch1.0.0
rollnumberDevice Roll1.0.0

Type Aliases

MotionCallback

(motion: Motion | null, err?: any): void

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago