AliyunIUploadCallback

Deprecated

@protocol AliyunIUploadCallback <NSObject>

* The protocol of upload callbacks.

  • * The callback when the upload is successful.

    Declaration

    Objective-C

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

    Parameters

    vid

    The VID of the video.

    imageUrl

    The path of the thumbnail.

  • * The callback when an error occurs during upload.

    Declaration

    Objective-C

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

    Parameters

    code

    The error code.

    message

    The error message.

  • * The callback that outputs the upload progress.

    Declaration

    Objective-C

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

    Parameters

    uploadedSize

    The uploaded file size.

    totalSize

    The total file size.

  • * The callback when the token expires.

    Declaration

    Objective-C

    - (void)uploadTokenExpired;
  • * The callback when the upload is retried.

    Declaration

    Objective-C

    - (void)uploadRetry;
  • * The callback when the retry is successful.

    Declaration

    Objective-C

    - (void)uploadRetryResume;