I need to find out when the device changes from on battery to plugged in. I can see there is a Device.addListener but I can’t find any documentation on the “event name”.
You could use the plugin
and setup Broadcast Receivers with filters,
and one for
and on startup you can find out whether they are plugged in by