Daily iOS
App lifecycle and system

Low Power Mode and thermal state

How can an app find out that the user turned on Low Power Mode or that the device has gotten hot?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Both signals live on ProcessInfo. Read Low Power Mode with isLowPowerModeEnabled and heat with thermalState (nominal, fair, serious, critical), and take later changes from the power state and thermal state change notifications rather than polling.

Share a question