detectedValues(for:)
Requests that the data detection system asynchronously identify the types of values that you specify for the pasteboard, and return the values that it matches.
Declaration
func detectedValues(for keyPaths: Set<PartialKeyPath<UIPasteboard.DetectedValues>>) async throws -> UIPasteboard.DetectedValuesParameters
- keyPaths:
A set of key paths you use to indicate which types of values you want the data detection system to match.
Return Value
An object that contains the values the data detection system matches in the pasteboard.
Discussion
Because this method gives the app access to the values it detects in the pasteboard, the system notifies the user about reading the contents of the pasteboard.
See Also
Detecting patterns of content in pasteboard items
detectPatterns(for:completionHandler:)detectedPatterns(for:)detectPatterns(for:inItemSet:completionHandler:)detectedPatterns(for:inItemSet:)detectValues(for:completionHandler:)detectValues(for:inItemSet:completionHandler:)detectedValues(for:inItemSet:)UIPasteboard.DetectedValuesUIPasteboard.DetectionPattern