<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SensitiveContentAnalysis",
  "identifier" : "/documentation/SensitiveContentAnalysis/SCVideoStreamAnalysisChangeHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Sensitive Content Analysis"
    ],
    "preciseIdentifier" : "c:@T@SCVideoStreamAnalysisChangeHandler"
  },
  "title" : "SCVideoStreamAnalysisChangeHandler"
}
-->

# SCVideoStreamAnalysisChangeHandler

A handler your app provides to receive video-stream analysis results.

```
typedef void (^)(SCSensitivityAnalysis *, NSError *) SCVideoStreamAnalysisChangeHandler;
```

## Discussion

Your app implements this handler and the framework calls it when the analyzer’s video stream detects sensitive content, or when the analyzer encounters an error providing analysis or an error in input parameters.

This handler receives an instance of [`SCSensitivityAnalysis`](/documentation/SensitiveContentAnalysis/SCSensitivityAnalysis), and an <doc://com.apple.documentation/documentation/Swift/Error>, as in the following example:

```swift
analyzer.analysisChangedHandler = { analysis, error in
    self.analysis = analysis
    if analysis.shouldInterruptVideo {
        // ...
    }
    if analysis.shouldIndicateSensitivity {
        // ...
    }
    if analysis.shouldMuteAudio {
        // ...
    }
}
```

---

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)