@capgo/capacitor-barometer
Capacitor plugin contract for working with the device barometer sensor.
Overview
Section titled “Overview”Capacitor plugin contract for working with the device barometer sensor.
Core Capabilities
Section titled “Core Capabilities”getMeasurement- Get the most recent barometer reading captured by the native layer.isAvailable- Check if the current device includes a barometer sensor.startMeasurementUpdates- Begin streaming barometer updates to the JavaScript layer.stopMeasurementUpdates- Stop the continuous updates started via .
Public API
Section titled “Public API”| Method | Description |
|---|---|
getMeasurement | Get the most recent barometer reading captured by the native layer. |
isAvailable | Check if the current device includes a barometer sensor. |
startMeasurementUpdates | Begin streaming barometer updates to the JavaScript layer. |
stopMeasurementUpdates | Stop the continuous updates started via . |
checkPermissions | Return the current permission state for accessing barometer data. |
requestPermissions | Request permission to access barometer data if required by the platform. |
addListener | Listen for pressure updates. |
removeAllListeners | Remove all registered listeners for this plugin. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-barometer.