Contents

SCSensitivityAnalysisPolicy

Configurations that represent the way the framework checks for sensitive content and how the app responds.

Declaration

enum SCSensitivityAnalysisPolicy

Overview

This enumeration defines the possible values for the SCSensitivityAnalyzer property analysisPolicy. The values of the policy determine how your app manages sensitive content detection.

// Check the current analysis policy. 
let policy = analyzer.analysisPolicy
if policy == .disabled { return } 
else if policy == .simpleInterventions {
    // The Sensitive Content Warning setting is active.
} else if policy == .descriptiveInterventions {
    // The Communication Safety setting is active.
}

For guidance about observing the active analysis policy, see Detecting nudity in media and providing intervention options.

Topics

Checking and intervention strategies

Creating an analysis policy value

See Also

Image and video file analysis