PSPDFDocumentEditorToolbarControllerDelegate
Objective-C
@protocol PSPDFDocumentEditorToolbarControllerDelegate<PSPDFFlexibleToolbarContainerDelegate>
/// Called when the toolbar changes the selected pages. The delegate should update its state and UI for the new selection.
- (void)documentEditorToolbarController:(PSPDFDocumentEditorToolbarController *)controller didSelectPages:(NSIndexSet *)pages;
@optional
/// Allows customization of the insertion point for new pages. Page page 0 is assumed, if not implemented.
- (NSUInteger)documentEditorToolbarController:(PSPDFDocumentEditorToolbarController *)controller indexForNewPageWithConfiguration:(PSPDFNewPageConfiguration *)configuration;
@end
Swift
protocol PDFDocumentEditorToolbarControllerDelegate : FlexibleToolbarContainerDelegate
Undocumented
-
Called when the toolbar changes the selected pages. The delegate should update its state and UI for the new selection.
Declaration
Objective-C
- (void)documentEditorToolbarController: (nonnull PSPDFDocumentEditorToolbarController *)controller didSelectPages:(nonnull NSIndexSet *)pages;
Swift
func documentEditorToolbarController(_ controller: PDFDocumentEditorToolbarController, didSelectPages pages: IndexSet)
-
Allows customization of the insertion point for new pages. Page page 0 is assumed, if not implemented.
Declaration
Objective-C
- (NSUInteger)documentEditorToolbarController: (nonnull PSPDFDocumentEditorToolbarController *)controller indexForNewPageWithConfiguration: (nonnull PSPDFNewPageConfiguration *)configuration;
Swift
optional func documentEditorToolbarController(_ controller: PDFDocumentEditorToolbarController, indexForNewPageWith configuration: PDFNewPageConfiguration) -> UInt