queryHistorySleep method

Future<void> queryHistorySleep(
  1. int historyTimeType
)

Gets the sleep data of a certain day. The query result will be obtained through the sleepChangeEveStm listening stream and saved in the SleepBean.past field and the SleepBean.pastSleepInfo field.

Implementation

Future<void> queryHistorySleep(int historyTimeType) {
  return _platform.queryHistorySleep(historyTimeType);
}