Unsolved Light sensing component utilization
-
Hello there,
For a while now I am trying to figure out either it is possible (preferably with Qt 5.13.0) to utilize the light sensing elements (photo transistor, diodes or resistors) that smart phones consist of (these normally near the ear speaker) to obtain the information about the luminosity level (doesn't even have to be in lux, any level is acceptable).
I have come across the Qt sensors API, which also includes this class: https://doc.qt.io/qt-5/qlightsensor.html
The problem is that I am not sure either it is in fact what I am looking for and I don't know yet hot to use it in the code.Taking under consideration my use case, I would really appreciate all help regarding this topic. The OS in which I need the functionality for is Android and iOS.
-
Hi,
From a quick look at the Qt Sensors module sources, there is support for the light sensor on Android but not on iOS, however it seems that using the light sensor is discourage by Apple and may get your app rejected.