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 }
  • Defaults to an empty array.

    See more

    Declaration

    Objective-C

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

    Swift

    var applicationActivities: [UIActivity] { get set }
  • Used for the activity action when the UIActivityViewController is displayed.

    Defaults to UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypePostToFacebook, UIActivityTypePostToTwitter, UIActivityTypePostToWeibo.

    The “Add to Photos” activity on Mac Catalyst will always be excluded because a system issue means selecting that option disables almost all the app’s buttons and menu items. (FB9727325)

    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;