PTTextSearchSession

@interface PTTextSearchSession : NSObject

- (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl
                       searchString:(NSString *)searchString
                            options:(PTTextSearchOptions *)options NS_DESIGNATED_INITIALIZER;

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

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

@property (nonatomic, readonly, copy) NSString *searchString;

@property (nonatomic, readonly, copy) PTTextSearchOptions *options;

/**
 * The delegate of the text search session.
 */
@property (nonatomic, weak, nullable) id<PTTextSearchSessionDelegate> delegate;

#pragma mark Controlling the search session

- (void)findNextResultInDirection:(PTTextSearchDirection)direction;

- (void)cancel;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (void)findNextResultInDirection:(PTTextSearchDirection)direction;

    Swift

    func findNextResult(in direction: PTTextSearchSession.SearchDirection)
  • Undocumented

    Declaration

    Objective-C

    - (void)cancel;

    Swift

    func cancel()