PSPDFFilePresenterCoordinator

Objective-C


@interface PSPDFFilePresenterCoordinator : NSObject

Swift

class FilePresenterCoordinator : NSObject

Coordinates file presenters and notifications. Observed presenters are automatically unregistered in response to UIApplicationDidEnterBackgroundNotification notification.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Shared instance of the coordinator.

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) PSPDFFilePresenterCoordinator *_Nonnull sharedCoordinator;

    Swift

    class var shared: FilePresenterCoordinator { get }
  • Registers the specified file presenter object so that it can receive notifications.

    Declaration

    Objective-C

    - (void)observeFilePresenter:(nonnull id<NSFilePresenter>)filePresenter;

    Swift

    func observe(_ filePresenter: NSFilePresenter)
  • Unregisters the specified file presenter object.

    Declaration

    Objective-C

    - (void)unobserveFilePresenter:(nonnull id<NSFilePresenter>)filePresenter;

    Swift

    func unobserveFilePresenter(_ filePresenter: NSFilePresenter)
  • Re-registers the file presenter for file presentation changes.

    This is needed if the file the file presenter is tracking was previously deleted and then re-created.

    Declaration

    Objective-C

    - (void)reloadFilePresenter:(nonnull id<NSFilePresenter>)filePresenter;

    Swift

    func reload(_ filePresenter: NSFilePresenter)

    Parameters

    filePresenter

    The file presenter to reload. Should be already registered with the coordinator, otherwise this method is a NOOP.

  • Observers multiple objects at the same time.

    Declaration

    Objective-C

    - (void)observeFilePresenters:
        (nullable NSArray<id<NSFilePresenter>> *)filePresenters;

    Swift

    func observe(_ filePresenters: [NSFilePresenter]?)
  • Unobserve multiple objects at the same time.

    Declaration

    Objective-C

    - (void)unobserveFilePresenters:
        (nullable NSArray<id<NSFilePresenter>> *)filePresenters;

    Swift

    func unobserveFilePresenters(_ filePresenters: [NSFilePresenter]?)