0

As we know that iPhone's screen can adjust itself automatically as the brightness changes around, so it should get the brightness of the outside first, right? That's what I thought. So now I just want to get the brightness of the outside environment throught its opt0-sensor, but I don't know how?

Can anybody be kind to help me? Thanks a lot!

Maksim
  • 2,054
  • 3
  • 17
  • 33

2 Answers2

1

You can use the camera and get the degree of brightness with the help of some image processing techniques as far as i know. Otherwise the iPhone configurations detecting the outside ambiant light is quite blackboxed for devs.

0

Unfortunately, according to this question, accessing the ambient light sensor data require access to private headers which is forbidden on the App Store.

Community
  • 1
  • 1
PatrickNLT
  • 4,075
  • 1
  • 25
  • 32