setSnoozePeriod static 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

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