analysisPolicy
A property that determines if the app detects nudity and how the app responds.
Declaration
var analysisPolicy: SCSensitivityAnalysisPolicy { get }Mentioned in
Discussion
Before attempting to use the framework, first check the analysisPolicy:
let policy = analyzer.analysisPolicy
if policy == .disabled { return }An app can utilize the SensitiveContentAnalysis framework when the system sets the value of this property to either:
SCSensitivityAnalysisPolicy.simpleInterventions, which indicates that a user activates the Communication Safety parental control in Screen Time.
SCSensitivityAnalysisPolicy.descriptiveInterventions, which indicates that the user activates the Sensitive Content Warning user preference.
The framework won’t detect nudity if the system disables this property. For more information on why the system disables sensitive content analysis, see SCSensitivityAnalysisPolicy.disabled.