intent gatekeeper initial
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user