简体   繁体   中英

Ambient light sensors in iphone

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.

可悲的是,光传感器超出了限制。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM