45 Battery Saving
Sets battery saing listener
Set the battery storage listener, the result is returned through the data stream, and the Batter saving state saved in "event".
_blePlugin.batterySavingEveStm.listen(
(bool event) {
/// Do something with new state
});
Sets battery saving state
_blePlugin.sendBatterySaving(bool enable);
Gets battery saving state
The result of Batter saving state will be obtained through the batterySavingEveStm monitoring stream.
_blePlugin.queryBatterySaving;