Dev docs say that UIKit -> UIScreen -> brightness can be used to set the screen brightness until the device locks
- Code: Select all
var brightness: CGFloat { get set }
This property is only supported on the main screen. The value of this property should be a number between 0.0 and 1.0, inclusive.
Brightness changes made by an app remain in effect until the device is locked, regardless of whether the app is closed. The system brightness (which the user can set in Settings or Control Center) is restored the next time the display is turned on.
I ask this because at night once most of the lights in the house turn off or dim very low, I'd like the tablets that never lock to dim as low as possible too, and in the morning they can come back up to a normal brightness.
I'm thinking I'd set a variable called TabletBrightness at the times I want it to change, then every 15m or so have the content of that variable sent to all connected Indigo Touch clients. This way even if one gets changed or locked/unlocked it won't be more than 15m before it gets adjusted to the desired level without user interaction.
Just a thought...
Thanks
Ross