PSPDFFileCoordinationDelegate

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.