PSPDFSearchHighlightViewManager

Objective-C


@interface PSPDFSearchHighlightViewManager : NSObject <PSPDFOverridable>

Swift

class SearchHighlightViewManager : NSObject, Overridable

Manages views added on PSPDFPageView.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDataSource:
        (nonnull id<PSPDFSearchHighlightViewManagerDataSource>)dataSource;

    Swift

    init(dataSource: SearchHighlightViewManagerDataSource)
  • The data source for the search highlight manager.

    Declaration

    Objective-C

    @property (nonatomic, weak, readonly)
        id<PSPDFSearchHighlightViewManagerDataSource> _Nullable dataSource;

    Swift

    weak var dataSource: SearchHighlightViewManagerDataSource? { get }
  • Returns YES if there are search results displayed on a page view.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasVisibleSearchResults;

    Swift

    var hasVisibleSearchResults: Bool { get }
  • Hide search results.

    Note

    animated is currently ignored.

    Declaration

    Objective-C

    - (void)clearHighlightedSearchResultsAnimated:(BOOL)animated;

    Swift

    func clearHighlightedSearchResults(animated: Bool)
  • Add search results.

    Declaration

    Objective-C

    - (void)addHighlightSearchResults:
                (nonnull NSArray<PSPDFSearchResult *> *)searchResults
                             animated:(BOOL)animated;

    Swift

    func addHighlight(_ searchResults: [PSPDFSearchResult], animated: Bool)
  • Animate search results.

    Declaration

    Objective-C

    - (void)animateSearchHighlight:(nonnull PSPDFSearchResult *)searchResult;

    Swift

    func animateSearchHighlight(_ searchResult: PSPDFSearchResult)