fluttercommunity / fluttercommunity/plus_plugins
[Request]: Support ClipData for Intents
- Dominant language
- Dart
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Plugin
android_intent_plus
### Use case
The reason I ran into this issue is that I need to pass multiple file content URIs in a single android intent (via the FileProvider system, and the `FLAG_GRANT_READ_URI_PERMISSION` intent flag).
[Android documentation states (for `FLAG_GRANT_READ_URI_PERMISSION`):](https://developer.android.com/reference/android/content/Intent#FLAG_GRANT_READ_URI_PERMISSION)
> If set, the recipient of this Intent will be granted permission to perform read operations on the URI in the Intent's data and **any URIs specified in its ClipData.**
### Proposal
Allow the `AndroidIntent` constructor to take a new class like `AndroidClipData` equivalent to the Android [`ClipData`](https://developer.android.com/reference/android/content/ClipData) that will then be passed to the underlying Intent via [setClipData](https://developer.android.com/reference/android/content/Intent#setClipData(android.content.ClipData))
Contributor guide
Assessment
This issue has not been assessed yet.