fluttercommunity / fluttercommunity/plus_plugins

[Request]: Support ClipData for Intents

Open
#1,932 0 comments 0 reactions 0 assignees View on GitHub
enhancement triage
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.