analyzeImage(at:completionHandler:)
Analyzes an image file on disk at a URL and runs code on completion.
Declaration
func analyzeImage(at fileURL: URL, completionHandler: @escaping @Sendable (SCSensitivityAnalysis?, (any Error)?) -> Void)func analyzeImage(at fileURL: URL) async throws -> SCSensitivityAnalysisParameters
- fileURL:
The URL for an image file on disk.
- completionHandler:
Code that your app provides for the system to run on completion.
Discussion
The completion handler:
Runs on an unspecified queue.
Provides a
resultsparameter that indicates if checked content contains nudity.