简体   繁体   English

在没有私有API的iOS中获得光传感器值?

[英]Get light sensor value in iOS without private API?

I need to get a concrete value from a sensor in lux . 我需要从lux中的传感器中获取具体值。 So no other substitute ways are appropriate for me, such as screen brightness. 因此没有其他替代方法适合我,例如屏幕亮度。

It seems IOKit contains everything I need but it is private API and I will not be able to post my app on the app store. 似乎IOKit包含我需要的一切,但它是私有API,我将无法在应用商店发布我的应用程序。

So are there Apple-approved ways to get data from the light sensor? Apple批准的方法是从光传感器获取数据吗? Or could you give a link to an official Apple documentation/official forum discussion where it is described that you can get light value via private API only? 或者,您是否可以链接到正式的Apple文档/官方论坛讨论,其中描述了您只能通过私有API获得轻量级价值?

我打开摄像机并解析每个帧的exif数据字典以获得亮度值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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