Package io.rong.imlib

Class IRongCoreCallback.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) Progress of uploading media files.
      abstract void onError(Message message, IRongCoreEnum.CoreErrorCode coreErrorCode) Failed to upload the file.
      void onError(IRongCoreEnum.CoreErrorCode e) Callback triggered on error.
      • Methods inherited from class io.rong.imlib.IRongCoreCallback.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

      • IRongCoreCallback.UploadMediaCallback

        IRongCoreCallback.UploadMediaCallback()
    • Method Detail

      • onProgress

         abstract void onProgress(Message message, int progress)

        Progress of uploading media files.

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

         abstract void onError(Message message, IRongCoreEnum.CoreErrorCode coreErrorCode)

        Failed to upload the file.

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