On 09/01/2014 02:10 PM, Jan Jongboom wrote: > At the moment we only expose proximity values through events, but I'm > wondering whether we can also make this available 'on demand'. > > If so, can someone give me some pointers? I can't find the proximity handling > code for Gonk in dom/system/gonk or widget/gonk.
I think there are discussions to change this api that will provide this functionality. The code in gecko is at: http://mxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp and http://mxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
