有没有办法以编程方式检测iOS 9低功耗模式? [英] Is there any way to detect iOS 9 low power mode programmatically?
本文介绍了有没有办法以编程方式检测iOS 9低功耗模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道用户可以通过观察电池图标的颜色来检测低功耗模式,但是是否有API调用允许程序检测低功耗模式?
I know the user can detect low power mode by observing the colour of the battery icon, but is there an API call that allows a program to detect low power mode?
推荐答案
是的,您可以添加观察者或直接查询。我会粘贴代码示例,但这仍然落后于NDA。
Yes, you can either add an observer or query it directly. I'd paste code samples, but this is still behind NDA.
这篇关于有没有办法以编程方式检测iOS 9低功耗模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文