@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.
Keep going from @capgo/capacitor-barometer
Section titled “Keep going from @capgo/capacitor-barometer”If you are using @capgo/capacitor-barometer to plan dashboard and API operations, connect it with Using @capgo/capacitor-barometer for the native capability in Using @capgo/capacitor-barometer, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, API Keys for the implementation detail in API Keys, and Devices for the implementation detail in Devices.