intent gatekeeper initial

This commit is contained in:
Fabian Freund committed 2026-04-19 02:23:04 +02:00
1 parent 5e6cc7a0f1
commit 57c3dcca86
27 files changed
+1413 -12

No files matched your search

@@ -53,3 +53,15 @@ class Intent {
abstract class IntentEvents {
void onIntentReceived(int sequence, Intent intent);
}
@HostApi()
abstract class IntentGatekeeperHostApi {
/// Replicates the blocked-packages policy to the native side so the
/// [IntentReceiverActivity] can reject intents without launching Flutter.
void setConfig(bool enabled, List<String> blockedPackages);
/// Resolves a package name to its user-visible application label via
/// [PackageManager]. Returns `null` if the package is not installed or the
/// label cannot be resolved.
String? resolvePackageLabel(String packageName);
}