NotificationHandler

INotificationHandler 的默认实现,如果需要自定义通知栏的布局,或对 NotificationHandler 的实现不满意,可通过自定义去实现一个 INotificationHandler

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onCancel(context: Context, notificationId: Int)

取消

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 onStart(context: Context, notificationId: Int, channelId: String, channelName: String, smallIcon: Int, title: CharSequence, content: CharSequence, isVibrate: Boolean, isSound: Boolean, 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)

成功