Is it possible to find out how bright the "real world" is on an iOS build?

I’ve created an Augmented Reality scene using Vuforia, and everything is working as it should (mostly).
One thing that I have an issue with is that the light in my scene has a fixed brightness. If the user is somewhere reasonable bright then the models look fine, but if they are somewhere darker the models looks far too bright.

Is there a way to get a value for how bright the user’s environment is? The only ways I can think of would be either:

  • Use the light sensor that controls screen brightness
  • Somehow detect the average brightness of whatever the camera is currently displaying (i.e. the average of all of the screen’s pixels).

However I’m not sure how to do this, or if it is even possible.
Does anyone know if there is a solution to my problem?

Not all devices even have a light sensor (assuming it’s accessible at all), so I think that method can be ruled out.

–Eric