setSnoozePeriod

suspend fun SendbirdChat.setSnoozePeriod(snoozeOn: Boolean, startTs: Long, endTs: Long)
suspend fun SendbirdChat.HMS.setSnoozePeriod(snoozeOn: Boolean, startTs: Long, endTs: Long)

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.

Since

4.15.0

Parameters

snoozeOn

Enables option or not.

startTs

Start timestamp of snooze period

endTs

End timestamp of snooze period