Get auto brightness level

I was wondering if there is a way to get the backlight level or brightness of an iOS device using publicly available frameworks.

Using the brightness UIScreen property simply sets the brightness level set by the user in System Preferences, which may differ from the brightness brightness level - in most cases this means that the above property is not automatically configured if the automatic brightness switch is on (in the system settings).

Thanks!

+4
source share
1 answer

It turns out you need to use a private API or write your own classes o calculate the brightness from one of the cameras on the device.

+2
source

All Articles