SDKsAndroid
Track message sending progress
Use the progress callback on OnMsgSendCallback to update media sending progress.
Use OnMsgSendCallback.onProgress() to receive progress updates for the current message.
messageManager.sendMessage(new OnMsgSendCallback() {
@Override public void onProgress(long progress) { /* progress is the send progress. */ }
@Override public void onSuccess(Message sentMessage) { /* sentMessage is the successfully sent message. */ }
@Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, message, peerUserID, null, offlinePushInfo);Was this page helpful?