AliyunIUploadCallback

Deprecated

@protocol AliyunIUploadCallback <NSObject>

上传回调协议

  • 上传成功

    Declaration

    Objective-C

    - (void)uploadSuccessWithVid:(NSString *)vid imageUrl:(NSString *)imageUrl;

    Parameters

    vid

    视频vid

    imageUrl

    图片路径

  • 上传失败

    Declaration

    Objective-C

    - (void)uploadFailedWithCode:(NSString *)code message:(NSString *)message;

    Parameters

    code

    错误码

    message

    错误日志

  • 上传进度

    Declaration

    Objective-C

    - (void)uploadProgressWithUploadedSize:(long long)uploadedSize
                                 totalSize:(long long)totalSize;

    Parameters

    uploadedSize

    已上传的文件大小

    totalSize

    文件总大小

  • token过期

    Declaration

    Objective-C

    - (void)uploadTokenExpired;
  • 上传超时,开始重试

    Declaration

    Objective-C

    - (void)uploadRetry;
  • 重试结束,继续上传

    Declaration

    Objective-C

    - (void)uploadRetryResume;