Package io.rong.imlib

Class RongIMClient.UploadMediaCallback

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onProgress(Message message, int progress) Upload progress of media files.
      abstract void onError(Message message, RongIMClient.ErrorCode errorCode) Failed to upload the file.
      void onError(RongIMClient.ErrorCode e) Callback triggered on error.
      • Methods inherited from class io.rong.imlib.RongIMClient.ResultCallback

        onCallback, onFail, onFail, onSuccess
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RongIMClient.UploadMediaCallback

        RongIMClient.UploadMediaCallback()
    • Method Detail

      • onProgress

         abstract void onProgress(Message message, int progress)

        Upload progress of media files.

        Parameters:
        message - The message object.
        progress - The upload progress, ranging from 0 to 100.
      • onError

         abstract void onError(Message message, RongIMClient.ErrorCode errorCode)

        Failed to upload the file.

        Parameters:
        message - The message object.
        errorCode - The error code.