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
- (instancetype)initWithPDFViewCtrl:(PTPDFViewCtrl *)pdfViewCtrl searchString:(NSString *)searchString options:(PTTextSearchOptions *)options NS_DESIGNATED_INITIALIZER;Swift
init(pdfViewCtrl: PTPDFViewCtrl, search searchString: String, options: PTTextSearchOptions) -
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 *pdfViewCtrlSwift
var pdfViewCtrl: PTPDFViewCtrl { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, copy) NSString *searchStringSwift
var searchString: String { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, copy) PTTextSearchOptions *optionsSwift
@NSCopying var options: PTTextSearchOptions { get } -
The delegate of the text search session.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTTextSearchSessionDelegate> delegate;Swift
weak var delegate: (any PTTextSearchSessionDelegate)? { get set }
-
Undocumented
Declaration
Objective-C
- (void)findNextResultInDirection:(PTTextSearchDirection)direction;Swift
func findNextResult(in direction: PTTextSearchSession.SearchDirection) -
Undocumented
Declaration
Objective-C
- (void)cancel;Swift
func cancel()
PTTextSearchSession Class Reference