rick
rick

Reputation: 1057

Why Apple Created isBatteryMonitoringEnabled?

To monitor battery state and level, app should first enable isBatteryMonitoringEnabled property and set it true.

But why this property created?

You can set it to false or true wherever you want and system does not interfere in monitoring ever.

Is there any advantages in performance to set it false?

Upvotes: 4

Views: 244

Answers (1)

yonivav
yonivav

Reputation: 1033

I think the OS wants to know what's is your app needs. It affects which apps should be terminated when there isn't enough memory.

Upvotes: 0

Related Questions