Proximity Sensor Plugin
This plugin allows you to detect if something is close to the proximity sensor.
Limitations: Only works on Android and iOS. Screen goes dark and touch is ignored on iOS when init() and something is close to screen. Not all devices have a proximity sensors
Functions:
ps.init()
activates proximity readings
ps.hasSensor()
--returns true if device has proximity sensor, returns false if device does not have proximity sensor
ps.disable()
deactivates proximity readings
ps.setListener(listener)
--listener(function) returns event.status which can be "far" or "close"