<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensitiveContentAnalysis",
  "identifier" : "/documentation/SensitiveContentAnalysis/SCSensitivityAnalyzer/analyzeImage(at:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Sensitive Content Analysis"
    ],
    "preciseIdentifier" : "c:objc(cs)SCSensitivityAnalyzer(im)analyzeImageFile:completionHandler:"
  },
  "title" : "analyzeImage(at:completionHandler:)"
}
-->

# analyzeImage(at:completionHandler:)

Analyzes an image file on disk at a URL and runs code on completion.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)