Skip to content

Review Android Inline and Photo Picker docs - #1784

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-widget-inline-photopicker-docs
Nov 24, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-widget-inline-photopicker-docs

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 9f814c8cd8c3a8c8063c80b8a4b5fefca7ebea15

Dimension Assessment Rationale
Change confidence 9/10 ↑ All 25 scoped XML files parse; 0 placeholders; bytes outside <Docs> are preserved; git diff --check passes.
↑ The required gemini-4-argon review found no issues.
↓ Android 37.2 r02 behavior for SetMinVideoDuration remains unverified; its documentation was left unchanged.

Scope

Pass-2 review R101: Android.Widget.Inline and Android.Widget.PhotoPicker. Reviewed all 25 assigned XML files and 176 changed documentation blocks. The namespace scope has 200 <Docs> blocks and no To be added placeholders.

Changes

  • Corrected managed API names and Crefs, including View.Layout and Photo Picker builder/property APIs.
  • Clarified managed property and enum wording, MIME type configuration, child surface package behavior, and DescribeContents results.
  • Reviewed 142 blocks as correct and corrected 33 proven issues. No speculative change was made for PhotoPickerSelectionParams.Builder.SetMinVideoDuration: Android 37.2 r01 source rejects Duration.ZERO, while its Javadoc only documents negative values; r02 behavior is unverified.

Evidence and checks

  • Checked against the managed API reference in net-android-37.0.xml and pinned Android 37.2 r01 sources (source-37.2_r01.zip, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84).
  • Parsed all 25 assigned XML files; verified 0 placeholders, preservation of content outside <Docs> after normalizing checkout line endings, and git diff --check.
  • Required gemini-4-argon review: no blocking or non-blocking findings.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 21:54
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 24, 2026 21:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for this documentation-only update to the managed Android API references.

No open issues 🎉

What changed in this PR

This documentation-only PR improves the Android Inline and Photo Picker API reference for .NET callers, aligning wording and links with the managed bindings.

Changes:

  • Replaces Java-style API names with managed API references and clarifies enum-to-integer usage.
  • Clarifies Photo Picker selection constraints, defaults, surface attachment, and parcelable return values.
  • Corrects documentation wording and removes selected source links without changing API declarations.
File Description
docs/​xml/​Android.Widget.PhotoPicker/​PhotoPickerUiCustomizationParams+Builder.xml Clarifies aspect-ratio values and required integer casts.
docs/​xml/​Android.Widget.PhotoPicker/​PhotoPickerUiCustomizationParams.xml Documents aspect-ratio defaults and DescribeContents results.
docs/​xml/​Android.Widget.PhotoPicker/​PhotoPickerSelectionParams+Builder.xml Clarifies MIME filtering and links to managed builder methods.
docs/​xml/​Android.Widget.PhotoPicker/​PhotoPickerSelectionParams.xml Corrects property references and parcelable documentation.
docs/​xml/​Android.Widget.PhotoPicker/​IEmbeddedPhotoPickerSession.xml Links surface attachment guidance to the managed API.
docs/​xml/​Android.Widget.PhotoPicker/​EmbeddedPhotoPickerUiCustomizationParams+Builder.xml Clarifies the aspect-ratio enum parameter.
docs/​xml/​Android.Widget.PhotoPicker/​EmbeddedPhotoPickerUiCustomizationParams.xml Clarifies selection-bar defaults and parcelable results.
docs/​xml/​Android.Widget.PhotoPicker/​EmbeddedPhotoPickerFeatureInfo+Builder.xml Corrects builder links, highlight-query wording, and theme values.
docs/​xml/​Android.Widget.PhotoPicker/​EmbeddedPhotoPickerFeatureInfo.xml Documents that DescribeContents returns zero.
docs/​xml/​Android.Widget.PhotoPicker/​AspectRatio.xml Clarifies how the enum maps to managed picker APIs.
docs/​xml/​Android.Widget.Inline/​InlineContentView.xml Links child-layout guidance to managed View.Layout.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I checked every hunk in the 11 files against the 37.2 SDK sources and developer.android.com. All files parse, and every new cref resolves.

  • InlineContentView: the View.Layout(Int32×4) link matches onLayout laying out its child.
  • AspectRatio: the values map to PhotoPickerUiCustomizationParams.ASPECT_RATIO_*. The managed EmbeddedPhotoPickerUiCustomizationParams exposes only an AspectRatio property, so the new sentence is accurate.
  • EmbeddedPhotoPickerFeatureInfo.Builder:
    • The precedence text matches the Android documentation.
    • SetThemeNightMode accepts exactly UiMode.NightUndefined/NightNo/NightYes (0/16/32), and the parameter is int, so the cast advice is correct.
  • DescribeContents: returns 0 in all four types.
  • PhotoPickerSelectionParams / Builder: the defaults (-1, null, empty MIME list) are correct, and Build() throws only when a min exceeds its max. The Intent.SetType and ExtraMimeTypes crefs resolve.
  • PhotoPickerUiCustomizationParams.Builder: the managed AspectRatio* int constants are [Obsolete(..., true)], so "cast the enum to int" is required, not just stylistic.

Optional follow-ups:

  • AspectRatio.xml remark: it mentions EmbeddedPhotoPickerUiCustomizationParams/Builder.SetAspectRatio, which only exist in net-android-37.0. The remark is shared with net-android-36.0 docs, so "In API 37 and later, …" could help.
  • SetMinVideoDuration/SetMaxVideoDuration (pre-existing): in 37.2 these throw IllegalArgumentException for any non-positive duration (zero included). That answers the open question in the description and could become an <exception> in a follow-up.

@jonathanpeppers
jonathanpeppers merged commit 20de692 into main Nov 24, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-widget-inline-photopicker-docs branch November 24, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants