Package io.rong.imlib
Class IRongCoreCallback.MediaMessageUploader
-
- All Implemented Interfaces:
public class IRongCoreCallback.MediaMessageUploader
-
-
Constructor Summary
Constructors Constructor Description IRongCoreCallback.MediaMessageUploader(Message message, String pushContent, String pushData, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callbackWithUploader)
IRongCoreCallback.MediaMessageUploader(Message message, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callbackWithUploader)
-
Method Summary
Modifier and Type Method Description IRongCoreCallback.ISendMediaMessageCallbackWithUploader
getCallbackWithUploader()
Message
getMessage()
String
getPushContent()
String
getPushData()
SendMessageOption
getOption()
void
update(int progress)
用户调用这个接口刷新进度 void
error()
上传失败时调用这个接口 void
cancel()
取消上传时调用此接口 void
success(Uri uploadedUri)
上传成功时调用这个接口 -
-
Constructor Detail
-
IRongCoreCallback.MediaMessageUploader
IRongCoreCallback.MediaMessageUploader(Message message, String pushContent, String pushData, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callbackWithUploader)
-
IRongCoreCallback.MediaMessageUploader
IRongCoreCallback.MediaMessageUploader(Message message, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callbackWithUploader)
-
-
Method Detail
-
getCallbackWithUploader
IRongCoreCallback.ISendMediaMessageCallbackWithUploader getCallbackWithUploader()
-
getMessage
Message getMessage()
-
getPushContent
String getPushContent()
-
getPushData
String getPushData()
-
getOption
SendMessageOption getOption()
-
update
void update(int progress)
用户调用这个接口刷新进度
- Parameters:
progress
- 消息发送进度 0-100
-
error
void error()
上传失败时调用这个接口
-
cancel
void cancel()
取消上传时调用此接口
-
success
void success(Uri uploadedUri)
上传成功时调用这个接口
- Parameters:
uploadedUri
- 上传成功后的图片地址,例如:http://XXX.
-
-
-
-