-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SensitiveContentAnalysis] Add support for Xcode 15 (#19020)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com> Co-authored-by: Alex Soto <alex@soto.dev>
- Loading branch information
1 parent
3e2ef13
commit 4f1cbbc
Showing
16 changed files
with
63 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using CoreGraphics; | ||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
#if !NET | ||
using NativeHandle = System.IntPtr; | ||
#endif | ||
|
||
namespace SensitiveContentAnalysis { | ||
[NoTV, NoWatch, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] | ||
[BaseType (typeof (NSObject))] | ||
[DisableDefaultCtor] | ||
interface SCSensitivityAnalysis { | ||
[Export ("sensitive")] | ||
bool Sensitive { [Bind ("isSensitive")] get; } | ||
} | ||
|
||
[NoTV, NoWatch, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] | ||
[Native] | ||
public enum SCSensitivityAnalysisPolicy : long { | ||
Disabled = 0, | ||
SimpleInterventions = 1, | ||
DescriptiveInterventions = 2, | ||
} | ||
|
||
[NoTV, NoWatch, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] | ||
[BaseType (typeof (NSObject))] | ||
interface SCSensitivityAnalyzer { | ||
[Export ("analysisPolicy", ArgumentSemantic.Assign)] | ||
SCSensitivityAnalysisPolicy AnalysisPolicy { get; } | ||
|
||
[Export ("analyzeImageFile:completionHandler:")] | ||
[Async] | ||
void AnalyzeImage (NSUrl fileUrl, Action<SCSensitivityAnalysis, NSError> completionHandler); | ||
|
||
[Export ("analyzeCGImage:completionHandler:")] | ||
[Async] | ||
void AnalyzeImage (CGImage image, Action<SCSensitivityAnalysis, NSError> completionHandler); | ||
|
||
[Export ("analyzeVideoFile:completionHandler:")] | ||
[Async] | ||
NSProgress AnalyzeVideo (NSUrl fileUrl, Action<SCSensitivityAnalysis, NSError> completionHandler); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.todo
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.todo
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.