threshold

fun threshold(threshold: Int, thresholdNotifications: Notifications)

Collapses all the current notifications into a single notification when the number of notifications exceed the threshold limit. A value of zero will disable the threshold behavior.


fun threshold(threshold: Int, thresholdNotificationsBuilder: NotificationsBuilder.() -> Unit)

Alias of NotificationsBuilder.threshold with builder DSL.