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

0.0.3 • Public • Published

Capacitor plugin for an easy compass using the native device sensors

Install

npm install capacitor-native-compass
npx cap sync

API

getCurrentHeading()

getCurrentHeading() => Promise<{ value: number; }>

Returns the current compass heading in degrees. On iOS, the heading is updated in the background, and the latest value is returned. On Android, the heading is calculated when the method is called. Not implemented on Web.

Returns: Promise<{ value: number; }>


Readme

Keywords

Package Sidebar

Install

npm i capacitor-native-compass

Weekly Downloads

2

Version

0.0.3

License

GPL-3.0-or-later

Unpacked Size

94.5 kB

Total Files

31

Last publish

Collaborators

  • heyitsbatman