Repository navigation
Fix TV ads and interactive app documentation (R069, pass 3) - #1950
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The Android TV API documentation updates have no active review issues requiring resolution.
No open issues 🎉
What changed in this PR
This documentation-only follow-up to #1755 refines the .NET Android TV advertising and interactive-app API reference. It corrects behavior descriptions without changing API metadata or runtime code.
Changes:
- Clarifies JNI reference handling and managed-peer registration.
- Corrects listener dispatch, callback executor usage, event-data semantics, and view measurement descriptions.
- Refines Android version boundaries, parcel return values, and multiple-action key-event documentation.
| File | Description |
|---|---|
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+UnhandledInputEventEventArgs.xml | Clarifies stored event data and handled-state semantics. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+TvInteractiveAppCallback.xml | Corrects JNI transfer documentation. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView.xml | Clarifies JNI handling, view behavior, and callback dispatch. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppServiceInfo.xml | Corrects parcel contents and DescribeContents return documentation. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService+Session.xml | Refines JNI, key-event, and video-unavailable reason descriptions. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService.xml | Clarifies JNI handling and app-type availability. |
| docs/xml/Android.Media.TV.Interactive/TvInteractiveAppManager+TvInteractiveAppCallback.xml | Corrects JNI transfer documentation. |
| docs/xml/Android.Media.TV.Interactive/InteractiveAppType.xml | Adds the version boundary for custom type names. |
| docs/xml/Android.Media.TV.Interactive/AppLinkInfo.xml | Documents the zero return from DescribeContents. |
| docs/xml/Android.Media.TV.Ads/TvAdView+TvAdCallback.xml | Corrects JNI transfer documentation. |
| docs/xml/Android.Media.TV.Ads/TvAdView+IOnUnhandledInputEventListener.xml | Clarifies the listener’s input-event parameter. |
| docs/xml/Android.Media.TV.Ads/TvAdView.xml | Refines measurement, listener property, executor, and JNI descriptions. |
| docs/xml/Android.Media.TV.Ads/TvAdServiceInfo.xml | Documents the zero return from DescribeContents. |
| docs/xml/Android.Media.TV.Ads/TvAdService+Session.xml | Corrects JNI and multiple-action key-event descriptions. |
| docs/xml/Android.Media.TV.Ads/TvAdService.xml | Corrects JNI transfer documentation. |
| docs/xml/Android.Media.TV.Ads/TvAdManager+TvAdServiceCallback.xml | Corrects JNI transfer documentation. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed all 16 changed documentation files and their relevant binding and Android source context. The JNI ownership wording, callback/executor behavior, parcel handling, teletext cref, and Android 14 API boundaries are consistent with the pinned sources. No blocking issues found. Static review only; no builds or tests executed.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
6d272892e2d865b50b08ecc3072188281e6c96ff↑ Copilot reported no open issues and OpenPublishing.Build passed on this head.
↓ The SDK source archive is r01 while the bindings use r02.
↓ The complete r02 SDK source is not available for comparison.
Scope
Pass 3 for
Android.Media.TV.AdsandAndroid.Media.TV.Interactive(R069). Personally reviewed 393 of 393 non-deferred AI-changed channels in 178 of 178 non-deferred blocks across 32 files. This PR corrects 43 channels in 36 blocks across 16 files. Deferred boilerplate and unrelated pre-AI text remain outside this review.Pass-2 #1755 had no uncertain findings. Its direct event-dispatch fix agrees with Android source and the pinned binding generator.
Corrections and evidence
transferdescriptions: the managed peer takes its own reference, while the incoming reference and peer registration follow the specified options. Object.SetHandle, JNIEnv.Context.MainExecutorname. Ad callback, interactive callback, direct teletext callback, direct recording callback, managed property.VideoUnavailableReason.Stopped. Android 13 service info, Android 14 service info, managed enum availability.DescribeContentsto report the actual return value, zero, for the three affected classes. AppLinkInfo, interactive service info, ad service info.Uncertain findings
None. The available SDK source archive is
source-37.2_r01.zip(SHA-2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84); r01 differences were not used to overwrite r02 binding facts.Checks
git diff --checkpassed. The isolated importer self-test passed with an existingCS8604warning.gemini-4-argonreview found no actionable issues. Its explanation contained inaccurate line references and treated teletext as the only direct callback; the independent source review also found direct recording callbacks.