Skip to main content

BatteryParameterRangeManager

class  BatteryParameterRangeManager

method getLowBattery

RangePair<Float> getLowBattery();

Description: Obtains the range of the low battery warning threshold. The threshold ranges from 0.25 to 0.50.

Input parameter: none.

Output parameter: the range of the low battery warning threshold.

Relevant parameter none.

method getCriticalBattery

RangePair<Float> getCriticalBattery();

Description: Obtains the range of the threshold for sending a critically low battery warning. The threshold ranges from 0.1 to 0.25.

Input parameter: none.

Output parameter: the range of the threshold for sending a critically low battery warning.

Relevant parameter none.

method getDischargeDay

RangePair<Integer> getDischargeDay();

Description: Obtains the number of the days on which the battery will discharge. The number ranges from 1 to 10.

Input parameter: none.

Output parameter: the number of the days on which the battery will discharge.

Relevant parameter none.

method getBatteryCellVoltageRange

void getBatteryCellVoltageRange(CallbackWithOneParam<RangePair<Integer>>
callback);

Description: Returns the voltage range of a battery cell.

Input parameter: callback (callback when obtaining the voltage range of a battery cell)

Output parameter: None

Relevant parameter none.