How to detect wireless charging new iPhone8/X on iOS 11

835 Views Asked by At

how to detect wireless charging new iPhone8/X on iOS 11? In the UIDevice class there is no this information

1

There are 1 best solutions below

0
On

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.