How to determine if mobile device is plugged in (charging)

I’m developing a mobile solution that is a port from Windows Mobile 6.5. One of the requirements of our software is that the application ‘reset’ when it is ‘docked’. This was solved previously by subscribing to the power management events for the device. The target device (Android, and eventually iOS) native APIs support this functionality, however I can’t figure out how to do it using Unity.
Is it possible to do this using Unity? If so, can anyone provide some pointers on how to go about doing it?

Thanks!

If it’s supported at the device level but not implemented in the Unity API then you’ll have to write a plugin to access that information. You’ll need Unity Pro. More information at Unity - Manual: Plug-ins