PSPDFDocumentSharingConfigurationBuilder

Objective-C


@interface PSPDFDocumentSharingConfigurationBuilder
    : PSPDFBaseConfigurationBuilder

Swift

class DocumentSharingConfigurationBuilder : BaseConfigurationBuilder

Undocumented

  • Declaration

    Objective-C

    @property (nonatomic) PSPDFDocumentSharingDestination _Nonnull destination;

    Swift

    var destination: DocumentSharingConfiguration.Destination { get set }
  • Defaults to PSPDFDocumentSharingFileFormatOptionPDF | PSPDFDocumentSharingFileFormatOptionImage | PSPDFDocumentSharingFileFormatOptionOriginal.

    See more

    Declaration

    Objective-C

    @property (nonatomic) PSPDFDocumentSharingFileFormatOptions fileFormatOptions;

    Swift

    var fileFormatOptions: DocumentSharingConfiguration.FileFormatOptions { get set }
  • Defaults to PSPDFDocumentSharingPagesOptionCurrent | PSPDFDocumentSharingPagesOptionRange | PSPDFDocumentSharingPagesOptionAll | PSPDFDocumentSharingPagesOptionAnnotated.

    See more

    Declaration

    Objective-C

    @property (nonatomic) PSPDFDocumentSharingPagesOptions pageSelectionOptions;

    Swift

    var pageSelectionOptions: DocumentSharingConfiguration.PageOptions { get set }
  • Defaults to PSPDFDocumentSharingAnnotationOptionEmbed | PSPDFDocumentSharingAnnotationOptionFlatten | PSPDFDocumentSharingAnnotationOptionRemove | PSPDFDocumentSharingAnnotationOptionSummary.

    See more

    Declaration

    Objective-C

    @property (nonatomic) PSPDFDocumentSharingAnnotationOptions annotationOptions;

    Swift

    var annotationOptions: DocumentSharingConfiguration.AnnotationOptions { get set }
  • Defaults to PSPDFPrintConfiguration.defaultConfiguration.

    See more

    Declaration

    Objective-C

    @property (nonatomic, nullable) PSPDFPrintConfiguration *printConfiguration;

    Swift

    var printConfiguration: PrintConfiguration? { get set }
  • Declaration

    Objective-C

    @property (nonatomic, copy) NSArray *_Nonnull applicationActivities;

    Swift

    var applicationActivities: [Any] { get set }
  • Defaults to an array with the following activity types: UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypePostToFacebook, UIActivityTypePostToTwitter, UIActivityTypePostToWeibo.

    See more

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIActivityType> *_Nonnull excludedActivityTypes;

    Swift

    var excludedActivityTypes: [UIActivity.ActivityType] { get set }
  • A closure that provides a string to describe each page in the page range picker.

    The page range picker is shown for the option DocumentSharingConfiguration.PageOptions.range. The closure is passed the index of the page to be described and the document that is being shared. Page indexes start at 0.

    By default this returns a string displaying pageIndex + 1. Set this property to a custom closure to show the page label or any other custom description.

    See more

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull (^_Nonnull) (PSPDFPageIndex, PSPDFDocument *_Nonnull) pageDescriptionProvider;

    Swift

    var pageDescriptionProvider: (PageIndex, Document) -> String { get set }
  • A block that provides a string to describe selected pages in the sharing UI.

    The block is passed the selected range option, the selected page range if applicable, and the documents being shared. pagesOption will always have exactly one bit set. The selectedPages is not applicable when sharing all pages or annotated pages and should be ignored in those cases. When sharing the current page, the selectedPages will contain exactly 1 index. Sharing the current page or a specific range is only possible when sharing a single document, so documents can be assumed to contain a single entry in those cases.

    To use the default PSPDFKit description in some cases, keep a reference to the original block and call through to it. Set this property to a custom block to show the page label or any other custom description.

    This block does not call through to pageDescriptionProvider. Set both blocks if you want to describe pages in a consistent way.

    See more

    Declaration

    Objective-C

    @property (nonatomic, copy) NS_REFINED_FOR_SWIFT NSString *_Nonnull (^) (PSPDFDocumentSharingPagesOptions, NSIndexSet *_Nonnull, NSArray<PSPDFDocument *> *_Nonnull) selectedPagesDescriptionProvider;