Repository navigation
Review Android Inline and Photo Picker docs - #1784
Merged
jonathanpeppers merged 1 commit intoNov 24, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 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
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 24, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
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: theView.Layout(Int32×4)link matchesonLayoutlaying out its child.AspectRatio: the values map toPhotoPickerUiCustomizationParams.ASPECT_RATIO_*. The managedEmbeddedPhotoPickerUiCustomizationParamsexposes only anAspectRatioproperty, so the new sentence is accurate.EmbeddedPhotoPickerFeatureInfo.Builder:- The precedence text matches the Android documentation.
SetThemeNightModeaccepts exactlyUiMode.NightUndefined/NightNo/NightYes(0/16/32), and the parameter isint, so the cast advice is correct.
DescribeContents: returns 0 in all four types.PhotoPickerSelectionParams/Builder: the defaults (-1, null, empty MIME list) are correct, andBuild()throws only when a min exceeds its max. TheIntent.SetTypeandExtraMimeTypescrefs resolve.PhotoPickerUiCustomizationParams.Builder: the managedAspectRatio*int constants are[Obsolete(..., true)], so "cast the enum to int" is required, not just stylistic.
Optional follow-ups:
AspectRatio.xmlremark: it mentionsEmbeddedPhotoPickerUiCustomizationParams/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 throwIllegalArgumentExceptionfor any non-positive duration (zero included). That answers the open question in the description and could become an<exception>in a follow-up.
jonathanpeppers
deleted the
jonathanpeppers-review-widget-inline-photopicker-docs
branch
November 24, 2026 23:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
9f814c8cd8c3a8c8063c80b8a4b5fefca7ebea15<Docs>are preserved;git diff --checkpasses.↑ The required
gemini-4-argonreview found no issues.↓ Android 37.2 r02 behavior for
SetMinVideoDurationremains unverified; its documentation was left unchanged.Scope
Pass-2 review R101:
Android.Widget.InlineandAndroid.Widget.PhotoPicker. Reviewed all 25 assigned XML files and 176 changed documentation blocks. The namespace scope has 200<Docs>blocks and noTo be addedplaceholders.Changes
View.Layoutand Photo Picker builder/property APIs.DescribeContentsresults.PhotoPickerSelectionParams.Builder.SetMinVideoDuration: Android 37.2 r01 source rejectsDuration.ZERO, while its Javadoc only documents negative values; r02 behavior is unverified.Evidence and checks
net-android-37.0.xmland pinned Android 37.2 r01 sources (source-37.2_r01.zip, SHA-2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84).<Docs>after normalizing checkout line endings, andgit diff --check.gemini-4-argonreview: no blocking or non-blocking findings.