set Do Not Disturb
Deprecated
As of 4.17.0, replaced with awaitSetDoNotDisturb(doNotDisturbOn, startHour, startMin, endHour, endMin, timezone).
Replace with
awaitSetDoNotDisturb(doNotDisturbOn, startHour, startMin, endHour, endMin, timezone)
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.15.0
Parameters
Enables option or not.
Start hour (0~23).
Start minute (0~59).
End hour (0~23).
End minute (0~59).
Timezone. java.util.TimeZone.getID can be used to get the current timezone.
Deprecated
As of 4.17.0, replaced with awaitSetDoNotDisturb(doNotDisturbOn, startHour, startMin, endHour, endMin, timezone).
Replace with
awaitSetDoNotDisturb(doNotDisturbOn, startHour, startMin, endHour, endMin, timezone)
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.15.0
Parameters
Enables option or not.
Start hour (0~23).
Start minute (0~59).
End hour (0~23).
End minute (0~59).
Timezone. java.util.TimeZone.getID can be used to get the current timezone.