Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10419] Android: Add API for supporting the Android Proximity Sensor functions

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-04-18T23:23:10.000+0000
Affected Version/sRelease 2.1.1
Fix Version/s2014 Sprint 08, 2014 Sprint 08 SDK, Release 3.3.0
ComponentsAndroid
Labelsapi, module_api, parity, qe-testadded
ReporterFederico Casali
AssigneeSunila
Created2012-06-24T14:57:45.000+0000
Updated2014-04-23T23:29:34.000+0000

Description

Customer is asking for being able to use proximity sensor functions for Android. Proximity Sensor API are currently available for iOS only: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.App-property-proximityDetection

Comments

  1. Federico Casali 2012-08-13

    Hi Eric, I'm moving your request to TiMob feature request section of Jira.
  2. Sunila 2014-02-08

    Added support for proximity sensor https://github.com/appcelerator/titanium_mobile/pull/5341
  3. Sunila 2014-02-08

    Test case Bring the phone near to the ear, the proximity value will change and event is fired. var win = Titanium.UI.createWindow({ backgroundColor:'#fff' }); Ti.App.proximityDetection=true; Ti.App.addEventListener('proximity', function(e) { Ti.API.info("Proximity = " + e.state); }); Ti.API.info("Proximity State = " + Ti.App.proximityState); win.open();

JSON Source