[英]IOS, wireless or usb charging status
I would like to find out if it is possible to know if the iphone is charging from usb or wireless.我想知道是否可以知道 iPhone 是通过 USB 还是无线充电。 I do develop for Android but not at all for IOS.我确实为 Android 开发,但根本不为 IOS 开发。 Therefore, i know it is possible on android to get this information from the BatteryManager but not on IOS.因此,我知道在 android 上可以从BatteryManager获取此信息,但不能在 IOS 上获取。
I tried to find the equivalent on ios but i only found the UIDeviceBatteryState .我试图在 ios 上找到等价物,但我只找到了UIDeviceBatteryState 。
The only constants are :唯一的常量是:
Any ideas?有任何想法吗?
For sorry you can't know that in IOS the only available properties regarding battery in the current UIDevice
are抱歉,您不知道在 IOS 中,当前UIDevice
中有关电池的唯一可用属性是
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.