Simple Control
Turn proximity monitoring on when a flow starts and disable it cleanly when it ends.
Capacitor plugin for enabling proximity monitoring in mobile apps.
Simple Control
Turn proximity monitoring on when a flow starts and disable it cleanly when it ends.
Native iOS Behavior
Uses UIDevice.isProximityMonitoringEnabled so iOS handles the screen behavior natively.
Android Sensor Support
Listens to Sensor.TYPE_PROXIMITY and dims the current app window while the sensor is covered.
Availability Checks
Verify whether the current device exposes a usable proximity sensor before enabling the feature.
Version Reporting
Read the native plugin version at runtime for debugging, support, and diagnostics.
Comprehensive Documentation
Check the Getting Started guide to install and integrate the plugin quickly.
enable - Enable proximity monitoring.disable - Disable proximity monitoring.getStatus - Get the current sensor availability and plugin enabled state.| Method | Description |
|---|---|
enable | Enable proximity monitoring. |
disable | Disable proximity monitoring. |
getStatus | Get the current sensor availability and plugin enabled state. |
getPluginVersion | Get the current native plugin version. |
This reference is synced from src/definitions.ts in capacitor-proximity.
If you are using @capgo/capacitor-proximity to plan native plugin work, connect it with Using @capgo/capacitor-proximity for the native capability in Using @capgo/capacitor-proximity, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.