[英]How to get device charging type in iOS app?
I need to get the type of charging method used to charge the device in my application (eg if device is getting charged using USB or wireless charger) 我需要获取用于在应用程序中为设备充电的充电方式类型(例如,如果设备正在使用USB或无线充电器充电)
I am aware that we can know whether the device is being charged, but how can we get the method of charging? 我知道我们可以知道设备是否正在充电,但是如何获得充电方法呢?
Thanks in advance. 提前致谢。
Have a look at this library on GitHub, https://github.com/eldade/EEIOKitListener . 看看GitHub上的这个库, https://github.com/eldade/EEIOKitListener 。
It provides a lot of information related to charging. 它提供了许多与充电有关的信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.