PTTextSearchManager

@interface PTTextSearchManager : NSObject <PTTextSearchSessionDelegate>

- (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl NS_DESIGNATED_INITIALIZER;

- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

@property (nonatomic, readonly, strong) PTPDFViewCtrl *pdfViewCtrl;

#pragma mark - Search session management

- (PTTextSearchSession *)beginSessionWithSearchString:(NSString *)searchString
                                              options:(PTTextSearchOptions *)options
    NS_SWIFT_NAME(beginSession(searchString:options:));

/**
 * The text manager's current session.
 *
 * The delegate of the `PTTextSearchSession` is this text search manager and should not be changed.
 */
@property (nonatomic, readonly, strong, nullable) PTTextSearchSession *currentSession;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl NS_DESIGNATED_INITIALIZER;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) PTPDFViewCtrl *pdfViewCtrl

    Swift

    var pdfViewCtrl: PTPDFViewCtrl { get }