PSPDFSearchScopeViewable
Objective-C
@protocol PSPDFSearchScopeViewable <NSObject>
Swift
protocol SearchScopeViewable : NSObjectProtocol
Protocol to integrate in a custom header view that represents the scope of the current section.
-
Configures the receiver to represent the passed in search scope.
Declaration
Objective-C
- (void)configureWithDocument:(nonnull PSPDFDocument *)document scope:(PSPDFSearchResultScope)scope pageIndexRange:(NSRange)pageIndexRange results:(NSUInteger)results;
Swift
func configure(with document: PSPDFDocument, scope: SearchViewController.ResultScope, pageIndexRange: NSRange, results: UInt)
Parameters
document
The document that is being searched.
scope
The scope that is represented by this view.
pageIndexRange
The range of page indexes that will be represented by the scope.
results
The number of results inside scope.