You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/02 14:35:42 UTC

[GitHub] timbru31 commented on issue #67: Determine which event is fired

timbru31 commented on issue #67: Determine which event is fired
URL: https://github.com/apache/cordova-plugin-battery-status/issues/67#issuecomment-468925910
 
 
   I assume you listen to the `batterystatus` event? You can always evaluate the `isPlugged` property. If you store the "old" status and compare it to the new one you should be able to determine if the event was fired because of a level change or the plugging in/out of the charger.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org