No Disturb Time Params
Set message notification quiet hours Parameter.
Used for Set Do Not Disturb When time range request Parameter.
Usage Example:
// basic usage
val params = NoDisturbTimeParams("22:00:00", 480, PushNotificationQuietHoursLevel.BLOCKED, "Asia/Shanghai")
NCEngine.setNoDisturbTime(params) { error ->
if (error == null) {
// Set successfully
}
}Content copied to clipboard
Parameters
start Time
Start time, Format HH:MM:SS
span Minutes
DND duration Duration (minutes), 0 < spanMinutes < 1440. example e.g. Start time 00:00, End time 01:00, Then spanMinutes 60. Set 1439 represents all days Do Not Disturb (23 * 60 + 59 = 1439)
level
DND level
time Zone
When area, distinguish Size write, example e.g. "Asia/Shanghai"
Constructors
Link copied to clipboard
public NoDisturbTimeParams NoDisturbTimeParams(String startTime, Integer spanMinutes, PushNotificationQuietHoursLevel level, String timeZone)