PSPDFSearchStatusViewable

@protocol PSPDFSearchStatusViewable <NSObject>

Protocol to integrate in a custom footer view that represents the current search status.

  • Configures the receiver to represent the passed in search status in the UI.

    Declaration

    Objective-C

    - (void)configureWithSearchStatus:(PSPDFSearchStatus)searchStatus
                              results:(NSUInteger)results
                            pageIndex:(NSUInteger)pageIndex
                            pageCount:(NSUInteger)pageCount;

    Swift

    func configure(with searchStatus: PSPDFSearchStatus, results: UInt, pageIndex: UInt, pageCount: UInt)

    Parameters

    searchStatus

    The current status of the search.

    results

    The number of results found so far.

    pageIndex

    The page we are currently searching.

    pageCount

    The number of pages that will be searched.