Contents

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 -> SCSensitivityAnalysis

Parameters

  • 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 results parameter that indicates if checked content contains nudity.

See Also

Analyzing images