showProgressNotification

fun showProgressNotification(context: Context, notificationId: Int, channelId: String, @DrawableRes smallIcon: Int, title: CharSequence, content: CharSequence, progress: Long, total: Long, supportCancelDownload: Boolean)

显示下载中的通知(更新进度)

Parameters

context
notificationId

通知ID

channelId

通知渠道ID

smallIcon

小图标资源ID

title

通知标题

content

通知内容

progress

当前进度

total

总大小

supportCancelDownload

是否支持取消下载