Skip to main content

getChargerWattage()

Returns a string containing the negotiated charger power contract for the connected Aila hardware (on devices equipped with powered hubs).

This value only indicates the power capabilities advertised by the charger, which may differ from actual power delivered.

AilaCordovaPlugin.getChargerWattage()

Returns

Promise that resolves with a string containing the charger wattage (e.g., "18W", "30W"), or null if the call fails.

Example

AilaCordovaPlugin.getChargerWattage()
.then((wattage) => {
console.log('Charger Wattage:', wattage);
});