INotificationHandler

通知处理器

Author

Jenly

Follow me

See also

Inheritors

Functions

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

取消

Link copied to clipboard
abstract fun onError(context: Context, notificationId: Int, channelId: String, @DrawableRes smallIcon: Int, title: CharSequence, content: CharSequence, allowRetry: Boolean)

错误

Link copied to clipboard
abstract fun onProgress(context: Context, notificationId: Int, channelId: String, @DrawableRes smallIcon: Int, title: CharSequence, content: CharSequence, progress: Long, total: Long, supportCancelDownload: Boolean)

更新进度

Link copied to clipboard
abstract fun onStart(context: Context, notificationId: Int, channelId: String, channelName: String, @DrawableRes smallIcon: Int, title: CharSequence, content: CharSequence, isVibrate: Boolean, isSound: Boolean, supportCancelDownload: Boolean)

开始

Link copied to clipboard
abstract fun onSuccess(context: Context, notificationId: Int, channelId: String, @DrawableRes smallIcon: Int, title: CharSequence, content: CharSequence, file: File, authority: String)

成功