setDoNotDisturb

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

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.

handler

Callback handler.