简体   繁体   中英

Get light sensor value in iOS without private API?

I need to get a concrete value from a sensor in 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.

So are there Apple-approved ways to get data from the light sensor? 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?

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

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