Version: Smart Feature Phone 3.0PowerSupplyDescription#The PowerSupply checks:If device is chargingTypes of power supply device is charging withPermission#Add "powersupply": {}Copyto app manifest permissions.sample code#powersupply usageconst powersupply = window.navigator.b2g.powerSupplyManager;powersupply.powerSupplyOnline;powersupply.addEventListener('powersupplystatuschanged', () => { ...});Copy