setSnoozePeriod static method
Sets snooze period for the current User
.
If this option is enabled,
the current User
does not receive push notification during the given period.
It's not a repetitive operation.
If you want to snooze repeatedly, use setDoNotDisturb.
Implementation
static Future<void> setSnoozePeriod({
required bool enable,
DateTime? startDate,
DateTime? endDate,
}) async {
sbLog.i(StackTrace.current, 'enable: $enable');
return await _instance._chat.setSnoozePeriod(
enable: enable,
startDate: startDate,
endDate: endDate,
);
}