diff --git a/src/automaticassessmentconfiguration.cs b/src/automaticassessmentconfiguration.cs index abdff007c9..0afa95e6ac 100644 --- a/src/automaticassessmentconfiguration.cs +++ b/src/automaticassessmentconfiguration.cs @@ -71,6 +71,22 @@ namespace AutomaticAssessmentConfiguration { [NoMac, iOS (14, 0)] [Export ("allowsContinuousPathKeyboard")] bool AllowsContinuousPathKeyboard { get; set; } + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("configurationsByApplication", ArgumentSemantic.Copy)] + NSDictionary ConfigurationsByApplication { get; } + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("mainParticipantConfiguration", ArgumentSemantic.Strong)] + AEAssessmentParticipantConfiguration MainParticipantConfiguration { get; } + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("removeApplication:")] + void Remove (AEAssessmentApplication application); + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("setConfiguration:forApplication:")] + void SetConfiguration (AEAssessmentParticipantConfiguration configuration, AEAssessmentApplication application); } [Mac (10,15,4), iOS (13,4)] @@ -92,6 +108,14 @@ namespace AutomaticAssessmentConfiguration { [Export ("initWithConfiguration:")] IntPtr Constructor (AEAssessmentConfiguration configuration); + [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("configuration", ArgumentSemantic.Copy)] + AEAssessmentConfiguration Configuration { get; } + + [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("updateToConfiguration:")] + void Update (AEAssessmentConfiguration configuration); + [Export ("begin")] void Begin (); @@ -118,5 +142,41 @@ namespace AutomaticAssessmentConfiguration { [Export ("assessmentSessionDidEnd:")] void DidEnd (AEAssessmentSession session); + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("assessmentSessionDidUpdate:")] + void DidUpdate (AEAssessmentSession session); + + [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [Export ("assessmentSession:failedToUpdateToConfiguration:error:")] + void FailedToUpdate (AEAssessmentSession session, AEAssessmentConfiguration configuration, NSError error); + } + + [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + interface AEAssessmentApplication : NSCopying + { + [Export ("bundleIdentifier")] + string BundleIdentifier { get; } + + [NullAllowed, Export ("teamIdentifier")] + string TeamIdentifier { get; } + + [Export ("requiresSignatureValidation")] + bool RequiresSignatureValidation { get; set; } + + [Export ("initWithBundleIdentifier:")] + IntPtr Constructor (string bundleIdentifier); + + [Export ("initWithBundleIdentifier:teamIdentifier:")] + IntPtr Constructor (string bundleIdentifier, [NullAllowed] string teamIdentifier); + } + + [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + interface AEAssessmentParticipantConfiguration : NSCopying + { + [Export ("allowsNetworkAccess")] + bool AllowsNetworkAccess { get; set; } } } diff --git a/tests/xtro-sharpie/MacCatalyst-AutomaticAssessmentConfiguration.todo b/tests/xtro-sharpie/MacCatalyst-AutomaticAssessmentConfiguration.todo deleted file mode 100644 index 3079899eef..0000000000 --- a/tests/xtro-sharpie/MacCatalyst-AutomaticAssessmentConfiguration.todo +++ /dev/null @@ -1,18 +0,0 @@ -!missing-protocol-member! AEAssessmentSessionDelegate::assessmentSession:failedToUpdateToConfiguration:error: not found -!missing-protocol-member! AEAssessmentSessionDelegate::assessmentSessionDidUpdate: not found -!missing-selector! AEAssessmentApplication::bundleIdentifier not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier: not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier:teamIdentifier: not bound -!missing-selector! AEAssessmentApplication::requiresSignatureValidation not bound -!missing-selector! AEAssessmentApplication::setRequiresSignatureValidation: not bound -!missing-selector! AEAssessmentApplication::teamIdentifier not bound -!missing-selector! AEAssessmentConfiguration::configurationsByApplication not bound -!missing-selector! AEAssessmentConfiguration::mainParticipantConfiguration not bound -!missing-selector! AEAssessmentConfiguration::removeApplication: not bound -!missing-selector! AEAssessmentConfiguration::setConfiguration:forApplication: not bound -!missing-selector! AEAssessmentParticipantConfiguration::allowsNetworkAccess not bound -!missing-selector! AEAssessmentParticipantConfiguration::setAllowsNetworkAccess: not bound -!missing-selector! AEAssessmentSession::configuration not bound -!missing-selector! AEAssessmentSession::updateToConfiguration: not bound -!missing-type! AEAssessmentApplication not bound -!missing-type! AEAssessmentParticipantConfiguration not bound diff --git a/tests/xtro-sharpie/iOS-AutomaticAssessmentConfiguration.todo b/tests/xtro-sharpie/iOS-AutomaticAssessmentConfiguration.todo deleted file mode 100644 index f5b20e71a8..0000000000 --- a/tests/xtro-sharpie/iOS-AutomaticAssessmentConfiguration.todo +++ /dev/null @@ -1,11 +0,0 @@ -!missing-selector! AEAssessmentApplication::bundleIdentifier not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier: not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier:teamIdentifier: not bound -!missing-selector! AEAssessmentApplication::requiresSignatureValidation not bound -!missing-selector! AEAssessmentApplication::setRequiresSignatureValidation: not bound -!missing-selector! AEAssessmentApplication::teamIdentifier not bound -!missing-selector! AEAssessmentParticipantConfiguration::allowsNetworkAccess not bound -!missing-selector! AEAssessmentParticipantConfiguration::setAllowsNetworkAccess: not bound -!missing-selector! AEAssessmentSession::configuration not bound -!missing-type! AEAssessmentApplication not bound -!missing-type! AEAssessmentParticipantConfiguration not bound diff --git a/tests/xtro-sharpie/macOS-AutomaticAssessmentConfiguration.todo b/tests/xtro-sharpie/macOS-AutomaticAssessmentConfiguration.todo deleted file mode 100644 index 3079899eef..0000000000 --- a/tests/xtro-sharpie/macOS-AutomaticAssessmentConfiguration.todo +++ /dev/null @@ -1,18 +0,0 @@ -!missing-protocol-member! AEAssessmentSessionDelegate::assessmentSession:failedToUpdateToConfiguration:error: not found -!missing-protocol-member! AEAssessmentSessionDelegate::assessmentSessionDidUpdate: not found -!missing-selector! AEAssessmentApplication::bundleIdentifier not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier: not bound -!missing-selector! AEAssessmentApplication::initWithBundleIdentifier:teamIdentifier: not bound -!missing-selector! AEAssessmentApplication::requiresSignatureValidation not bound -!missing-selector! AEAssessmentApplication::setRequiresSignatureValidation: not bound -!missing-selector! AEAssessmentApplication::teamIdentifier not bound -!missing-selector! AEAssessmentConfiguration::configurationsByApplication not bound -!missing-selector! AEAssessmentConfiguration::mainParticipantConfiguration not bound -!missing-selector! AEAssessmentConfiguration::removeApplication: not bound -!missing-selector! AEAssessmentConfiguration::setConfiguration:forApplication: not bound -!missing-selector! AEAssessmentParticipantConfiguration::allowsNetworkAccess not bound -!missing-selector! AEAssessmentParticipantConfiguration::setAllowsNetworkAccess: not bound -!missing-selector! AEAssessmentSession::configuration not bound -!missing-selector! AEAssessmentSession::updateToConfiguration: not bound -!missing-type! AEAssessmentApplication not bound -!missing-type! AEAssessmentParticipantConfiguration not bound