PCFile+FileOperation

Version 1.5 - Updated on 10/20/2016

Includes: PCFile.h

Contents

Introduction

Includes methods that allow you to download a file and a thumbnail of a file.

Methods

downloadFileWithProgressHandler

- (PCAPI *)downloadFileWithProgressHandler:(void (^)(float progress))progress 
        andCompletionHandler:(void (^)(PCAPIQueryResponse *response))completion; 
  • Parameters

    • progress
      Indicates the upload progress of the file.

    • completion
      This block is called on the completion of a file download. PCAPIQueryResponse stores the location of the downloaded file.

    • completion
      A PCAPI object which is downloading the file.

  • Discussion
    Call this method to download a file. The file is downloaded to a temporary location and is removed once the API which downloaded the file is released. To keep the file, move it to a different location in completion callback.

downloadThumbnailWithCompletionHandler

- (PCAPI *)downloadThumbnailWithCompletionHandler:(void (^)(PCAPIQueryResponse *response))completion;
  • Parameters

    • completion
      This block is called on the completion of thumbnail fetch process. PCAPIQueryResponse stores the location of the downloaded thumbnail.

    • Return Value
      A PCAPI object which is downloading the thumbnail image.

  • Discussion
    Call this method to download the thumbnail image of any file.

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.