setSnoozePeriod

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

Deprecated

As of 4.17.0, replaced with awaitSetSnoozePeriod(snoozeOn, startTs, endTs).

Replace with

awaitSetSnoozePeriod(snoozeOn, startTs, endTs)

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 awaitSetSnoozePeriod.

Since

4.15.0

Parameters

snoozeOn

Enables option or not.

startTs

Start timestamp of snooze period

endTs

End timestamp of snooze period


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

Deprecated

As of 4.17.0, replaced with awaitSetSnoozePeriod(snoozeOn, startTs, endTs).

Replace with

awaitSetSnoozePeriod(snoozeOn, startTs, endTs)

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 SendbirdChat.HMS.awaitSetSnoozePeriod.

Since

4.15.0

Parameters

snoozeOn

Enables option or not.

startTs

Start timestamp of snooze period

endTs

End timestamp of snooze period