set Do Not Disturb
fun setDoNotDisturb(doNotDisturbOn: Boolean, startHour: Int, startMin: Int, endHour: Int, endMin: Int, timezone: String, handler: CompletionHandler?)
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 setSnoozePeriod.
Since
3.0.2
Parameters
do Not Disturb On
Enables option or not.
start Hour
Start hour (0~23).
start Min
Start minute (0~59).
end Hour
End hour (0~23).
end Min
End minute (0~59).
timezone
Timezone. java.util.TimeZone.getID can be used to get the current timezone.
handler
Callback handler.