PSPDFDocumentEditorToolbarControllerDelegate
Objective-C
@protocol PSPDFDocumentEditorToolbarControllerDelegate <
PSPDFFlexibleToolbarContainerDelegate>
Swift
protocol PDFDocumentEditorToolbarControllerDelegate : FlexibleToolbarContainerDelegate
The delegate of PDFDocumentEditorToolbarController
.
-
Tells the delegate that the set of selected pages changes as a result of using one of the toolbar buttons.
The delegate should implement this method to update its state and UI for the new selection.
Note
This method is not called when the set of selected pages changes programmatically or as a result of selecting individual pages one-by-one.
Declaration
Objective-C
- (void)documentEditorToolbarController: (nonnull PSPDFDocumentEditorToolbarController *)controller didSelectPages:(nonnull NSIndexSet *)pages;
Swift
func documentEditorToolbarController(_ controller: PDFDocumentEditorToolbarController, didSelectPages pages: IndexSet)
Parameters
controller
The calling toolbar controller.
pages
The new set of selected pages.
-
Asks the delegate for the page index at which a new page should be inserted.
If the delegate does not implement this method,
0
is assumed.@returns The page index at which the new page should be inserted.
Declaration
Objective-C
- (PSPDFPageIndex)documentEditorToolbarController: (nonnull PSPDFDocumentEditorToolbarController *)controller indexForNewPageWithConfiguration: (nonnull PSPDFNewPageConfiguration *)configuration;
Swift
optional func documentEditorToolbarController(_ controller: PDFDocumentEditorToolbarController, indexForNewPageWith configuration: PDFNewPageConfiguration) -> PageIndex
Parameters
controller
The calling toolbar controller.
configuration
The configuration of the new page being inserted.