how to detect wireless charging new iPhone8/X on iOS 11? In the UIDevice class there is no this information
Asked
Active
Viewed 805 times
2
-
3Why would _how_ the device is charging matter? – dandan78 Sep 15 '17 at 13:04
-
You will get a quicker answer on the Apple Developer Forums, if an API is available. – Robotic Cat Sep 15 '17 at 15:04
-
4Quite strange, why there are some people are not happy with this question. – DàChún Oct 23 '17 at 14:25
2 Answers
2
As for now there is not any data for detecting this. On your UIDevice.current object you currently have batteryState which is an enum of UIDeviceBatteryState which currently have:
- unknown
- unplugged
- charging
- full
Maybe Apple will add wireless charing to it in the future.
Rashwan L
- 38,237
- 7
- 103
- 107
0
At the moment there's only one unofficial robust Chargifi API for wireless charging control and iOS notifications.
Look here for other useful info about
Chargifi APIandChargifi SDK.
Let's wait until WWDC 2018 begins. I suppose AirPower wireless charging pad built on Qi standard will be released at that moment.
Andy Jazz
- 49,178
- 17
- 136
- 220