invoke

operator fun invoke(block: NotificationCleanupConfig.() -> Unit = {}): <Error class: unknown class>

Create a NotificationCleanupConfig instance with the specified configuration block.

Example usage:

val config = NotificationCleanupConfig {
cleanupMode = CleanupMode.AGE_BASED
maxNotificationAgeDays = 60
}

Return

A new NotificationCleanupConfig instance with the applied settings.

Parameters

block

Configuration block to apply to the NotificationCleanupConfig.