[docs] Improve XML docs for PreserveAttribute, CLEnums, MKLocalSearch, and 12 more types - #26241
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9a37ff16-2fda-4715-8343-f3408ac8c442
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9a37ff16-2fda-4715-8343-f3408ac8c442
There was a problem hiding this comment.
Pull request overview
This PR updates XML documentation across several Apple framework bindings to replace placeholder text (“To be added.”), remove empty doc nodes, and fix XML tag ordering/indentation so IntelliSense is more useful and consistent.
Changes:
- Replaced boilerplate/empty XML docs with more descriptive summaries, params, and return docs for a set of commonly used APIs.
- Removed empty
<remarks>/<returns>nodes and normalized documentation formatting (summary/param order, indentation). - Improved documentation for async/cancellation and nullable-return patterns in several APIs (with a couple of remaining mismatches noted in review comments).
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/MapKit/MKLocalSearch.cs | Improves StartAsync XML docs (summary/param/returns/remarks). |
| src/LocalAuthentication/LAEnums.cs | Adds meaningful enum value summaries for LAStatus. |
| src/HomeKit/HMHome.cs | Documents GetServices summary/param/returns more clearly. |
| src/GameplayKit/GKGameModel.cs | Removes empty/placeholder remarks from model constants/type. |
| src/Foundation/PreserveAttribute.cs | Improves constructor summary/param docs. |
| src/CoreVideo/CVPixelBufferAttributes.cs | Improves constructor docs and removes placeholder remarks. |
| src/CoreText/CTFontCollection.cs | Removes placeholder remarks and improves ctor parameter documentation. |
| src/CoreSpotlight/CSSearchableIndex.cs | Improves ctor summary/param docs for named indexes and protection options. |
| src/CoreMotion/CMSensorDataList.cs | Removes placeholder returns/remarks from enumerator implementations. |
| src/CoreLocation/CLEnums.cs | Improves enum value summaries for authorization/activity types. |
| src/AVFoundation/AVCaptureMetadataOutput.cs | Refines property XML docs (metadata type filtering / available types). |
| src/AVFoundation/AVCaptureDeviceInput.cs | Improves factory method summary/param/returns docs. |
| src/AppKit/NSSpellChecker.cs | Adds meaningful docs for Language property. |
| src/AppKit/NSSpeechSynthesizer.cs | Adds meaningful docs for Voice property. |
| src/AppKit/NSSound.cs | Adds meaningful docs for Name property. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- MKLocalSearch.StartAsync: document nullable result on cancellation - AVCaptureMetadataOutput: fix summaries to say 'metadata object types' not 'keys' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9a37ff16-2fda-4715-8343-f3408ac8c442
✅ 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 #c9a130c] Build failed (Build macOS tests) 🔥Build failed for the job 'Build macOS tests' (with job status 'Canceled') Pipeline on Agent |
🚀 [CI Build #b9d80ec] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 203 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Improve XML documentation for:
PreserveAttribute(Foundation)CMSensorDataList(CoreMotion)CSSearchableIndex(CoreSpotlight)CLAuthorizationStatusandCLActivityType(CoreLocation)CTFontCollection(CoreText)GKGameModel(GameplayKit)HMHome(HomeKit)LAStatus(LocalAuthentication)MKLocalSearch(MapKit)CVPixelBufferAttributes(CoreVideo)NSSound(AppKit)NSSpeechSynthesizer(AppKit)NSSpellChecker(AppKit)AVCaptureDeviceInput(AVFoundation)AVCaptureMetadataOutput(AVFoundation)Changes:
🤖 Pull request created by Copilot