Quick View
Sets the quick view
Turns the quick view on or off.
/// quickViewState: true enable; false otherwise.
_blePlugin.sendQuickView(bool enable);
Gets the quick view
Gets the quick view state of the device.
bool quickViewState = await _blePlugin.queryQuickView;
Sets the effective time for quick view
The watch supports setting the effective time period for turning the wrist and turning on the screen, and it is only valid when turning the wrist and turning on the screen within the set time period.
_blePlugin.sendQuickViewTime(PeriodTimeBean info);
Parameter Description :
PeriodTimeBean:
value | value type | value description |
---|---|---|
endHour | int | end time hours |
endMinute | int | end time in minutes |
startHour | int | start time hours |
startMinute | int | start time in minutes |
Gets the effective time for quick view
PeriodTimeResultBean info = await _blePlugin.queryQuickViewTime;
Callback Description:
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