Skip to content

Capacitor plugin for an easy compass using the native device sensors

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

HeyItsBATMAN/capacitor-native-compass

Repository files navigation

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; }>


About

Capacitor plugin for an easy compass using the native device sensors

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published