DataDetectorWorker
public final class DataDetectorWorker
A data detector worker. It works in a background thread and returns the result in the completion block.
-
A completion block.
Declaration
Swift
public typealias Completion = (_ urls: [DataDetectorURLItem]) -> Void
-
Undocumented
Declaration
Swift
public init(types: NSTextCheckingResult.CheckingType, callbackQueue: DispatchQueue = .main, completion: @escaping Completion) throws
-
Starts the matching in a given text.
Declaration
Swift
public func match(_ text: String)