ArtSabintsev
ArtSabintsev

Reputation: 5180

Get Auto-Brightness level

I was wondering if there was a way to get the back-light or auto-brightness level of an iOS-device using the public frameworks.

Using UIScreen's brightness property simply gets the brightness level set by the user in System Preferences, which may be different than the auto-brightness level - in most cases, it is, which means that the aforementioned property does not auto-adjust if the auto-brightness switch (in System preferences) is turned on.

Thanks!

Upvotes: 4

Views: 718

Answers (1)

ArtSabintsev
ArtSabintsev

Reputation: 5180

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

Upvotes: 2

Related Questions