PCResourceItem+FOPSOperation

PCResourceItem+FOPSOperation

Version 1.9 - Updated on 05/04/2017

Includes: PCResourceItem.h

Contents

Introduction

This class includes method that allow you to  copy , delete, move, and rename methods for all media types.

Methods

copyItem

- (PCAPI *)copyItem:(PCFOPSAPIParams *)params 
        withCompletionHandler:(void (^)(id resourceItem, PCAPIQueryResponse *response))completion;
  • Parameters

    • params
      Parameters required to perform a copy operation.

    • completion
      This block is called on the completion of a copy operation. The metadata of the target file, folder, audio, video, or photo is returned in the completion block.

  • Discussion
    Call this method to copy a file, folder, audio, video, or photo from one location to a different location.

deleteItem

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

    • completion
      This block is called on the completion of a delete operation. The metadata of the deleted file, folder, audio, video, or photo is returned in the completion block.
  • Discussion
    Call this method to delete a file, folder, audio, video, or photo.

moveItem

- (PCAPI *)moveItem:(PCFOPSAPIParams *)params 
        withCompletionHandler:(void (^)(id resourceItem, PCAPIQueryResponse *response))completion; 
  • Parameters

    • params
      parameters required to perform move operation.

    • completion
      This block is called on the completion of a move operation. The metadata of the target file, folder, audio, video, or photo is returned in the completion block.

  • Discussion
    Call this method to move a file, folder, audio, video, or photo from one location to a different location.

renameItem

- (PCAPI *)renameItem:(PCFOPSAPIParams *)params 
        withCompletionHandler:(void (^)(id resourceItem, PCAPIQueryResponse *response))completion;
  • Parameters

    • params
      Parameters required to perform a rename operation.

    • completion
      This block is called on the completion of a rename operation. The metadata of the renamed file, folder, audio, video, or photo is returned in the completion block.

  • Discussion
    Call this method to rename a file, folder, audio, video, or a photo.

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