Do Not Disturb
Sets the do not disturb time
The watch supports the Do Not Disturb period. Do not display message push and sedentary reminders during the time.
_blePlugin.sendDoNotDisturbTime(PeriodTimeBean info);
Parameter Description :
PeriodTimeBean:
value | value type | value description |
---|---|---|
startHour | int | Start time hours (24-hour clock) |
startMinute | int | Start time minutes |
endHour | int | End time hours (24-hour clock) |
endMinute | int | End time minutes |
Gets the do not disturb time
Check if do not disturb the time set by the watch.
PeriodTimeResultBean info = await _blePlugin.queryDoNotDisturbTime;
Callback Description(event):
PeriodTimeResultBean:
callback value | callback value type | callback value description |
---|---|---|
periodTimeType | int | type of event |
periodTimeInfo | PeriodTimeBean | specific event |
periodTimeType:
value | value type | value description |
---|---|---|
doNotDistrubType | int | 1 |
quickViewType | int | 2 |
Notes:PeriodTimeResultBean is a class shared by Do not disturb and Quick View. By specifying the type of periodTimeType, it indicates that the returned periodTimeInfo belongs to the information of that function