withProgress

fun withProgress(progress: ValueMax<Int>, persistent: Boolean = true): Notification.Builder

Sets the progress of the notification. If progress is set to less than 0, it will be indeterminate

Author

Arnau Mora

Since

20210313

Return

The Builder instance

Parameters

progress

The progress of the notification


fun withProgress(progress: Int, max: Int, persistent: Boolean = true): Notification.Builder

Sets the progress of the notification. If progress is set to less than 0, it will be indeterminate

Author

Arnau Mora

Since

20210313

Return

The Builder instance

Parameters

progress

The current progress

max

The maximum progress

Throws

When progress is greater than max