titanium-mobiletitanium-alloyappcelerator-mobiletitanium-android

How to access and use the Proximity Sensor of mobile phone through Titanium Mobile


How can I access the proximity sensor of the phone through Appcelerators Titanium Mobile API? I have been searching the web and their docs but can't seem to find anything or a concrete example.


Solution

  • You can find this in the doc of Titanium.App

    http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App-property-proximityState