PSPDFMessageCoordinator


@interface PSPDFMessageCoordinator
    : PSPDFDocumentSharingCoordinator <MFMessageComposeViewControllerDelegate>

The message coordinator shows the document sharing sheet, then the messages sheet. It manages the flow during that operation. Coordinates the PSPDFDocumentSharingViewController and the MFMessageComposeViewControllerDelegate.

  • Control what data is sent. Defaults to PSPDFDocumentSharingOptionCurrentPageOnly|PSPDFDocumentSharingOptionPageRange|PSPDFDocumentSharingOptionAllPages|PSPDFDocumentSharingOptionEmbedAnnotations|PSPDFDocumentSharingOptionFlattenAnnotations|PSPDFDocumentSharingOptionOfferMergeFiles.

    If only one option is set here, no menu will be displayed.

    Note

    Messages/Mobile Safari do not display all annotations if they are not flattened. (This is a technical limitation and has been improved in iOS 11)

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFDocumentSharingOptions sharingOptions;

    Swift

    var sharingOptions: PSPDFDocumentSharingOptions { get set }
  • Keeps a reference to the mail compose view controller, if visible.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        MFMessageComposeViewController *_Nullable messageComposeViewController;