NotificationHandler
INotificationHandler 的默认实现,如果需要自定义通知栏的布局,或对 NotificationHandler 的实现不满意,可通过自定义去实现一个 INotificationHandler
Author
Functions
Link copied to clipboard
open override fun onError(context: Context, notificationId: Int, channelId: String, smallIcon: Int, title: CharSequence, content: CharSequence, allowRetry: Boolean)
错误
Link copied to clipboard
open override fun onProgress(context: Context, notificationId: Int, channelId: String, smallIcon: Int, title: CharSequence, content: CharSequence, progress: Long, total: Long, supportCancelDownload: Boolean)
更新进度
Link copied to clipboard
open override fun onSuccess(context: Context, notificationId: Int, channelId: String, smallIcon: Int, title: CharSequence, content: CharSequence, file: File, authority: String)
成功