Add docs about Android file handling via intent filters#865
Merged
luke-whos-here merged 3 commits intoAvaloniaUI:mainfrom Feb 3, 2026
Merged
Add docs about Android file handling via intent filters#865luke-whos-here merged 3 commits intoAvaloniaUI:mainfrom
luke-whos-here merged 3 commits intoAvaloniaUI:mainfrom
Conversation
Contributor
luke-whos-here
left a comment
There was a problem hiding this comment.
Thanks for the contribution! I've made a few suggestions to try and clarify some instructions that felt unclear to me at first, and also to remove some of the commented lines in the samples that I thought were not needed.
|
|
||
| 2. Attach a listener to the `IAvaloniaActivity.Activated` event. It will be raised with `FileActivatedEventArgs` when the user selected your app to open a file. | ||
|
|
||
| 3. Forward the received storage items into your application/view model. |
Contributor
There was a problem hiding this comment.
Suggested change
| 3. Forward the received storage items into your application/view model. | |
| 3. Forward the received storage items to your application and view model. | |
| When Android activates your app to open a file, the `HandleIntent` method receives an object containing the files. The handler extracts the files and passes them to your App class, which then passes them to the view model for processing. |
Contributor
Author
There was a problem hiding this comment.
I found your suggestion a bit redundant with step 2 and changed the wording myself.
Co-authored-by: Luke <55367595+luke-whos-here@users.noreply.github.com>
Contributor
Author
|
@luke-whos-here Thank you very much for the quick code review. I applied most of your suggested changes and made the explanation of passing the event data to the view model more detailed as the code sample does not include some verbose method overrides which are required to achieve that. |
luke-whos-here
added a commit
that referenced
this pull request
Feb 3, 2026
Add docs about Android file handling via intent filters
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.
This pull request adds documentation about a feature implemented in AvaloniaUI/Avalonia#20564.
It is my first time contributing to Avalonia's documentation and I am uncertain whether this is a suitable way to document this feature. However, I am certain it must be documented for developers to find it.