fluttercommunity / fluttercommunity/plus_plugins
[Request]: Support ClipData for Intents
- Vorherrschende Sprache
- Dart
- Sterne
- 1.9k
- Forks
- 1.3k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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))
Beitragsleitfaden
Rechercherichtung
Beginne beim AndroidIntent-Konstruktor in android_intent_plus und vergleiche die verknüpfte Android-Dokumentation zu ClipData und Intent.setClipData. Verfolge, wie die Konstruktorwerte das zugrunde liegende Intent erreichen; abgeschlossen ist die Aufgabe, wenn Aufrufer mehrere content URIs als ClipData für das vorgesehene Verhalten bei URI-Berechtigungen übergeben können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, dart
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100