You can call setAggregationStateCallback to get the overall battery status of M600.
You can refer to the code block below:
Battery.setAggregationStateCallback(new AggregationState.Callback() {
@Override
public void onUpdate(AggregationState aggregationState) {
ToastUtils.setResultToToast(Integer.toString(aggregationState.getChargeRemainingInPercent()));
}
});
Comments
0 comments
Please sign in to leave a comment.