setSnoozePeriod method

Future<void> setSnoozePeriod({
  1. required bool enable,
  2. DateTime? startDate,
  3. DateTime? endDate,
})

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,
  );
}