Skip to content

SensitiveContentAnalysis macOS xcode27.0 b1

Alex Soto edited this page Jun 9, 2026 · 1 revision

#SensitiveContentAnalysis.framework

diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Headers/SCSensitivityAnalysis.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Headers/SCSensitivityAnalysis.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Headers/SCSensitivityAnalysis.h	2026-04-19 02:09:16
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Headers/SCSensitivityAnalysis.h	2026-05-23 13:46:29
@@ -9,12 +9,35 @@
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
+/*!
+  @enum         SCSensitiveContentType
+  @abstract     Identifies the specific types of sensitive content that can be detected during media analysis.
+  @discussion   These content types are used to categorize potentially sensitive material found in images,
+                videos, or other media. Use these constants to determine what kind of sensitive content
+                was detected and to implement appropriate handling or filtering logic in your application.
+ 
+  @constant     SCSensitiveContentTypeSexuallyExplicit
+                Content that contains nudity or sexually explicit material.
+ 
+  @constant     SCSensitiveContentTypeGoreOrViolence
+                Content that depicts graphic violence, gore, or disturbing imagery.
+*/
+typedef NSString *SCSensitiveContentType NS_TYPED_ENUM NS_SWIFT_NAME(SCSensitivityAnalysis.ContentType) API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0)) API_UNAVAILABLE(watchos, tvos);
+extern const SCSensitiveContentType SCSensitiveContentTypeSexuallyExplicit API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0)) API_UNAVAILABLE(watchos, tvos);
+extern const SCSensitiveContentType SCSensitiveContentTypeGoreOrViolence API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0)) API_UNAVAILABLE(watchos, tvos);
+
 /// Sensitive Analysis Results object is returned after sensitivity analysis is performed on media
 NS_SWIFT_SENDABLE
 API_AVAILABLE(macos(14.0), ios(17.0), visionos(2.0)) API_UNAVAILABLE(watchos, tvos)
 @interface SCSensitivityAnalysis : NSObject
+
 /// Set to YES if analyzed media contains sensitive content
+// … skipped existing API ...
 @property(readonly, getter=isSensitive) BOOL sensitive;
+
+/// Type of sensitive content the analyzed media contains
+@property (nonnull, nonatomic, copy, readonly) NSSet<SCSensitiveContentType> *detectedTypes API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0)) API_UNAVAILABLE(watchos, tvos);
+
 @end
 
 NS_HEADER_AUDIT_END(nullability, sendability)

Clone this wiki locally