await Set Do Not Disturb
Deprecated
Use awaitSetWeeklyDoNotDisturb instead.
Replace with
import com.sendbird.android.DayOfWeek
import com.sendbird.android.DndTimeWindow
if (doNotDisturbOn) awaitSetWeeklyDoNotDisturb(DayOfWeek.values().associateWith { listOf(DndTimeWindow(startHour, startMin, endHour, endMin)) }, java.util.TimeZone.getTimeZone(timezone)) else awaitClearWeeklyDoNotDisturb()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
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
Use awaitSetWeeklyDoNotDisturb instead.
Replace with
import com.sendbird.android.DayOfWeek
import com.sendbird.android.DndTimeWindow
if (doNotDisturbOn) awaitSetWeeklyDoNotDisturb(DayOfWeek.values().associateWith { listOf(DndTimeWindow(startHour, startMin, endHour, endMin)) }, java.util.TimeZone.getTimeZone(timezone)) else awaitClearWeeklyDoNotDisturb()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
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.