Project: titanium
Issue TIMOB-19926: Windows: Support proximity sensor for Windows 10
Support proximity sensor. {{Ti.App.proximityState}}, {{Ti.App.proximityDetection}} and Ti.App {{proximity}} event. Maybe {{Windows::Networking::Proximity}} package does the sensor work. *Test Case* {code} var win = Ti.UI.createWindow({ backgroundColor: 'red' }); Ti.App.addEventListener('proximity', function (e) { win.setBackgroundColor(e.state ? 'green' : 'red'); }); Ti.App.setProximityDetection(true); win.open(); {code} {code:title=tiapp.xml} ... ... {code}
Story points: 8