You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I want to check when the device is plugged in. Is there a way to check if the fired event is because of a level change or the plugging in?
The text was updated successfully, but these errors were encountered: