ISendMediaMessageCallback

发送媒体类型的消息回调 包括:图片,文件,音频,视频

Functions

Link copied to clipboard
abstract fun onAttached(message: KIMCoreMessage?)

触发时机:消息已存储数据库时 适用场景:当发送一条消息,业务方需要立即展示出来的时候,可以用这里的回调参数

Link copied to clipboard
abstract fun onCanceled(message: KIMCoreMessage?)

取消发送

Link copied to clipboard
abstract fun onError(message: KIMCoreMessage?, errorCode: ErrorCode)

触发时机:消息发送失败时

Link copied to clipboard
open fun onMediaUploaded(message: KIMCoreMessage?, filePath: String?, store: String?, storeKey: String?)

媒体文件上传成功后的storeKey

Link copied to clipboard
abstract fun onProgress(message: KIMCoreMessage?, i: Int)

发送进度

Link copied to clipboard
abstract fun onSuss(message: KIMCoreMessage?)

触发时机:消息发送成功时