``
This Proximity Sensor API includes turning the screen on and off with the proximity sensor on the phone.
This API requires the following permission to be added to your AndroidManifest.xml file:
<uses-permission android:name="android.permission.WAKE_LOCK"/>
activeProximitySensor() => Promise<proximityInfos>
Active proximity sensor
Returns: Promise
Since: 0.0.5
deActivateProximitySensor() => Promise<proximityInfos>
Deactivate proximity sensor
Returns: Promise
Since: 0.0.5
isActive() => Promise<proximityInfos>
Returns sensor active or deactive value
Returns: Promise
Since: 0.0.5