jamesmontemagno / BatteryPlugin

Battery Plugin for Xamarin and Windows
MIT License
27 stars 18 forks source link

Simulate battery level change #6

Closed ilannt closed 7 years ago

ilannt commented 7 years ago

How can I simulate a battery level change in the emulator to test my BatteryChanged handler?

thank you

--ilann

jamesmontemagno commented 7 years ago

Depends on if the emulator supports it. If it does then you will get the change events.

ilannt commented 7 years ago

I'm using the visual studio 2017 emulator, but can I simulate a battery level change programmatically in a timer for example?