capacitor-gyroscope
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i capacitor-gyroscope

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

26.1 kB

Total Files

26

Last publish

Collaborators

  • tylerkuster