setSnoozePeriod 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
Future<void> setSnoozePeriod({
required bool enable,
DateTime? startDate,
DateTime? endDate,
}) async {
return await SendbirdChat.setSnoozePeriod(
enable: enable,
startDate: startDate,
endDate: endDate,
);
}