Ambient light sensors in iphone

荒凉一梦 提交于 2019-12-24 20:10:03

问题


In our app, If a user covers the top area of iphone where ambient light sensors are available, i want to get the changing value of ambient light sensors. I don't want to manipulate those value as i understand Apple doesn't allow to play with hardware . My objective is to get that value of ambient light sensors. This is testing application which is checking if ambient light sensors are working correctly or not.

I spent lot of time, but couldn't find any thing yet. I tried with UIScreenBrightnessDidChangeNotification, but this is for screen brightness.

Similar kind of functionality is available in android and i could get the value of Ambient light sensors.

Any help would be highly appreciated.


回答1:


Sadly the light sensors are off limits.



来源:https://stackoverflow.com/questions/19691821/ambient-light-sensors-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!