2.1.1 • Published 3 years ago
@red-mobile/cordova-plugin-magnetometer v2.1.1
cordova-plugin-magnetometer
This plugin provides access to the device's magnetometer sensor.
At this moment this plugin is implemented only for Android!
Installation
cordova plugin add @red-mobile/cordva-plugin-magnetometer
uninstall
cordova plugin remove @red-mobile/cordva-plugin-magnetometer
Supported Platforms
- Android
Methods
- navigator.magnetometer.getCurrentMagnetometer
- navigator.magnetometer.watchMagnetometer
- navigator.magnetometer.clearWatch