[Accessibility] Update bindings up to Xcode 27 Beta 3#25984
Conversation
Bind the new APIs added to the Accessibility framework's AXSettings.h in Xcode 27, available on iOS, tvOS, macOS and Mac Catalyst 27.0 (API_AVAILABLE(anyappleos(27.0))): * AXApplicationAccessibilityEnabled () -> AXSettings.IsApplicationAccessibilityEnabled * AXApplicationAccessibilityEnabledDidChangeNotification -> AXSettings.ApplicationAccessibilityEnabledDidChangeNotification Also add a monotouch-test exercising the new P/Invoke and remove the now-resolved *-Accessibility.todo xtro annotation files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the Accessibility framework bindings to match new Xcode 27 Beta 3 APIs by adding a new AXSettings P/Invoke-backed property and a corresponding notification constant, plus a monotouch-test to exercise the new functionality and cleanup resolved xtro todo annotations.
Changes:
- Add
AXSettings.IsApplicationAccessibilityEnabledbacked by a newAXApplicationAccessibilityEnablednative entry point (anyappleos 27.0). - Bind
AXApplicationAccessibilityEnabledDidChangeNotificationasAXSettings.ApplicationAccessibilityEnabledDidChangeNotification. - Add a monotouch-test for the new API and remove the resolved Accessibility xtro todo entries.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/xtro-sharpie/api-annotations-dotnet/tvOS-Accessibility.todo | Removes resolved tvOS Accessibility missing-binding annotations. |
| tests/xtro-sharpie/api-annotations-dotnet/macOS-Accessibility.todo | Removes resolved macOS Accessibility missing-binding annotations. |
| tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Accessibility.todo | Removes resolved Mac Catalyst Accessibility missing-binding annotations. |
| tests/xtro-sharpie/api-annotations-dotnet/iOS-Accessibility.todo | Removes resolved iOS Accessibility missing-binding annotations. |
| tests/monotouch-test/Accessibility/AXSettings.cs | Adds a test exercising the new AXSettings property. |
| src/Accessibility/AXSettings.cs | Adds the new P/Invoke and public property for application accessibility enabled state. |
| src/accessibility.cs | Adds the new notification field binding for AXSettings. |
| TestRuntime.AssertXcodeVersion (27, 0); | ||
| Assert.That (AXSettings.IsApplicationAccessibilityEnabled, Is.EqualTo (true).Or.EqualTo (false), "IsApplicationAccessibilityEnabled"); | ||
| } |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #7bff6cc] Build passed (Detect API changes) ✅Pipeline on Agent |
✅ [PR Build #7bff6cc] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [PR Build #7bff6cc] Build passed (Build macOS tests) ✅Pipeline on Agent |
🔥 [CI Build #7bff6cc] Test results 🔥Test results❌ Tests failed on VSTS: test results 1 tests crashed, 0 tests failed, 191 tests passed. Failures❌ Tests on macOS Golden Gate (27) tests🔥 Failed catastrophically on VSTS: test results - mac_golden_gate (no summary found). Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Bind the new APIs added to the Accessibility framework's AXSettings.h in Xcode 27, available on iOS, tvOS, macOS and Mac Catalyst 27.0 (API_AVAILABLE(anyappleos(27.0))):
Also add a monotouch-test exercising the new P/Invoke and remove the now-resolved *-Accessibility.todo xtro annotation files.