iPhone中的环境光传感器 [英] Ambient light sensors in iphone

查看:908
本文介绍了iPhone中的环境光传感器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用中,如果用户覆盖了可用环境光传感器的iphone顶部区域,我想获取环境光传感器的变化值.我不想操纵这些价值,因为我知道Apple不允许使用硬件. 我的目标是获得环境光传感器的价值.这是一个测试应用程序,用于检查环境光传感器是否正常工作.

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.

我花了很多时间,但找不到任何东西.我尝试使用UIScreenBrightnessDidChangeNotification,但这是为了提高屏幕亮度.

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

类似的功能在android中可用,我可以获得环境光传感器的价值.

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

任何帮助将不胜感激.

推荐答案

不幸的是,光传感器超出了限制.

Sadly the light sensors are off limits.

这篇关于iPhone中的环境光传感器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆