PSPDFFileCoordinationDelegate

@protocol PSPDFFileCoordinationDelegate<NSObject>

/**
 Called after the underlying file was modified.

 Roughly corresponds to a `presentedItemDidChange` `NSFilePresenter` notification.
 This call is only invoked if the file content changes since the last successful read.
 File metadata updates are ignored.

 @param dataProvider The requesting coordinated file data provider.
 */
- (void)presentedItemDidChangeForDataProvider:(id<PSPDFCoordinatedFileDataProviding>)dataProvider;

/**
 Called when the underlying file is about to be deleted.

 Corresponds to a `accommodatePresentedItemDeletionWithCompletionHandler:` `NSFilePresenter` notification.

 @param dataProvider The requesting coordinated file data provider.
 @param completionHandler Should be invoked to allow the deletion to continue.
 */
- (void)accommodatePresentedItemDeletionForDataProvider:(id<PSPDFCoordinatedFileDataProviding>)dataProvider completionHandler:(void (^)(NSError *_Nullable))completionHandler;

@end

Undocumented

  • Called after the underlying file was modified.

    Roughly corresponds to a presentedItemDidChange NSFilePresenter notification. This call is only invoked if the file content changes since the last successful read. File metadata updates are ignored.

    Declaration

    Objective-C

    - (void)presentedItemDidChangeForDataProvider:
        (nonnull id<PSPDFCoordinatedFileDataProviding>)dataProvider;

    Parameters

    dataProvider

    The requesting coordinated file data provider.

  • Called when the underlying file is about to be deleted.

    Corresponds to a accommodatePresentedItemDeletionWithCompletionHandler: NSFilePresenter notification.

    Declaration

    Objective-C

    - (void)accommodatePresentedItemDeletionForDataProvider:
                (nonnull id<PSPDFCoordinatedFileDataProviding>)dataProvider
                                          completionHandler:
                                              (nonnull void (^)(NSError *_Nullable))
                                                  completionHandler;

    Parameters

    dataProvider

    The requesting coordinated file data provider.

    completionHandler

    Should be invoked to allow the deletion to continue.