Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
QCloudCOSSMHDownloadObjectRequest *req = [QCloudCOSSMHDownloadObjectRequest new];// full file pathreq.filePath = @"filepath";// Media Library ID, required parameterreq.libraryId = @"libraryId";// Space ID. If the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter.req.spaceId = @"spaceId";// When this option is set to YES, it will compare the crc64 of the file stored in COS with the crc64 of the file downloaded to local after download completionCurrently enabled by default.req.enableCRC64Verification = YES;// Whether to use part and resume download, defaults to YES.req.resumableDownload = YES;// Local download pathreq.downloadingURL = cto.tempFileURL;// Progress callback[req setDownProcessBlock:^(int64_t bytesDownload, int64_t totalBytesDownload, int64_t totalBytesExpectedToDownload) {}];// Complete callback[req setFinishBlock:^(id outputObject, NSError *error) {}];[[QCloudSMHService defaultSMHService] smhDownload:req];
[request cancel];
[request remove];
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback