Phonegap battery status plugin3/24/2023 ![]() ![]() Example window.addEventListener("batterycritical", onBatter圜ritical, false) Īlert("Battery Level Critical " + status. The Prius Prime is eligible for federal tax credit of US4,500 due to its larger 8.8 kWh battery. ![]() Returns an object containing battery status. The Cordova battery status plugin is available for installation on Android, iOS, Windows, and Browser Ionic applications. The Prius Plug-in also qualified for California's Enhanced Advanced Technology-Partial Zero-Emissions Vehicle (EAT-PZEV) status, which allowed plug-in owners to have free access to use carpool lanes even when traveling solo. Example window.addEventListener("batterylow", onBatteryLow, false) Īlert("Battery Level Low " + status.level + "%") įires when the battery charge percentage reaches the critical charge threshold. Returns an object containing battery status. batterylow eventįires when the battery charge percentage reaches the low charge threshold. Warning: the Android implementation is greedy and prolonged use will drain the device's battery. Example window.addEventListener("batterystatus", onBatteryStatus, false) Ĭonsole.log("Level: " + status.level + " isPlugged: " + status.isPlugged) (Boolean)įires when the battery charge percentage changes by at least 1 percent, or when the device is plugged in or unplugged.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |