PSPDFMailCoordinator


@interface PSPDFMailCoordinator
    : PSPDFDocumentSharingCoordinator <MFMailComposeViewControllerDelegate>

The mail coordinator shows the document sharing sheet and then the mail sheet and manages the flow during that operation.

  • Keeps a reference to the mail compose view controller, if visible.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        MFMailComposeViewController *_Nullable mailComposeViewController;

    Swift

    weak var mailComposeViewController: MFMailComposeViewController? { get }
  • By default, this simply forwards to the mailComposeViewController. Subclass to customize file names or skip elements.

    Declaration

    Objective-C

    - (void)addAttachmentData:(nonnull NSData *)attachment
                     mimeType:(nonnull NSString *)mimeType
                     fileName:(nonnull NSString *)filename;

    Swift

    func addAttachmentData(_ attachment: Data, mimeType: String, fileName filename: String)