PSPDFDocumentSharingConfigurationBuilder
Objective-C
@interface PSPDFDocumentSharingConfigurationBuilder
: PSPDFBaseConfigurationBuilder
Swift
class DocumentSharingConfigurationBuilder : BaseConfigurationBuilder
Undocumented
-
Defaults to
See morePSPDFDocumentSharingDestinationActivity
.Declaration
Objective-C
@property (nonatomic) PSPDFDocumentSharingDestination _Nonnull destination;
Swift
var destination: DocumentSharingConfiguration.Destination { get set }
-
Defaults to
See morePSPDFDocumentSharingFileFormatOptionPDF | PSPDFDocumentSharingFileFormatOptionImage | PSPDFDocumentSharingFileFormatOptionOriginal
.Declaration
Objective-C
@property (nonatomic) PSPDFDocumentSharingFileFormatOptions fileFormatOptions;
Swift
var fileFormatOptions: DocumentSharingConfiguration.FileFormatOptions { get set }
-
Defaults to
See morePSPDFDocumentSharingPagesOptionCurrent | PSPDFDocumentSharingPagesOptionRange | PSPDFDocumentSharingPagesOptionAll | PSPDFDocumentSharingPagesOptionAnnotated
.Declaration
Objective-C
@property (nonatomic) PSPDFDocumentSharingPagesOptions pageSelectionOptions;
Swift
var pageSelectionOptions: DocumentSharingConfiguration.PageOptions { get set }
-
Defaults to
See morePSPDFDocumentSharingAnnotationOptionEmbed | PSPDFDocumentSharingAnnotationOptionFlatten | PSPDFDocumentSharingAnnotationOptionRemove | PSPDFDocumentSharingAnnotationOptionSummary
.Declaration
Objective-C
@property (nonatomic) PSPDFDocumentSharingAnnotationOptions annotationOptions;
Swift
var annotationOptions: DocumentSharingConfiguration.AnnotationOptions { get set }
-
Defaults to
See morePSPDFPrintConfiguration.defaultConfiguration
.Declaration
Objective-C
@property (nonatomic, nullable) PSPDFPrintConfiguration *printConfiguration;
Swift
var printConfiguration: PrintConfiguration? { 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 moreDeclaration
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
See morepageIndex + 1
. Set this property to a custom closure to show the page label or any other custom description.Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull (^_Nonnull) (PSPDFPageIndex, PSPDFDocument *_Nonnull) pageDescriptionProvider;
-
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. TheselectedPages
is not applicable when sharing all pages or annotated pages and should be ignored in those cases. When sharing the current page, theselectedPages
will contain exactly 1 index. Sharing the current page or a specific range is only possible when sharing a single document, sodocuments
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
See morepageDescriptionProvider
. Set both blocks if you want to describe pages in a consistent way.Declaration
Objective-C
@property (nonatomic, copy) NS_REFINED_FOR_SWIFT NSString *_Nonnull (^) (PSPDFDocumentSharingPagesOptions, NSIndexSet *_Nonnull, NSArray<PSPDFDocument *> *_Nonnull) selectedPagesDescriptionProvider;