Contents

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.DetectedValues

Parameters

  • 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