awaitSetDoNotDisturb

suspend fun SendbirdChat.awaitSetDoNotDisturb(doNotDisturbOn: Boolean, startHour: Int, startMin: Int, endHour: Int, endMin: Int, timezone: String)

Sets Do-not-disturb option for the current User. If this option is enabled, the current User does not receive push notification during the specified time repeatedly. If you want to snooze specific period, use awaitSetSnoozePeriod.

Since

4.17.0

Parameters

doNotDisturbOn

Enables option or not.

startHour

Start hour (0~23).

startMin

Start minute (0~59).

endHour

End hour (0~23).

endMin

End minute (0~59).

timezone

Timezone. java.util.TimeZone.getID can be used to get the current timezone.


suspend fun SendbirdChat.HMS.awaitSetDoNotDisturb(doNotDisturbOn: Boolean, startHour: Int, startMin: Int, endHour: Int, endMin: Int, timezone: String)

Sets Do-not-disturb option for the current User. If this option is enabled, the current User does not receive push notification during the specified time repeatedly. If you want to snooze specific period, use SendbirdChat.HMS.awaitSetSnoozePeriod.

Since

4.17.0

Parameters

doNotDisturbOn

Enables option or not.

startHour

Start hour (0~23).

startMin

Start minute (0~59).

endHour

End hour (0~23).

endMin

End minute (0~59).

timezone

Timezone. java.util.TimeZone.getID can be used to get the current timezone.