PSPDFFilePresenterCoordinator


@interface PSPDFFilePresenterCoordinator : NSObject

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

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFilePresenterCoordinator : NSObject
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFilePresenterCoordinator : NSObject
  • Shared instance of the coordinator.

    Declaration

    Objective-C

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

    Swift

    class var shared: PSPDFFilePresenterCoordinator { 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)
  • 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]?)