added gatekeeper notification options

This commit is contained in:
Fabian Freund
2026-05-02 08:27:19 +02:00
parent 94b9b9cceb
commit 13ffe82d4e
14 changed files with 557 additions and 23 deletions
@@ -64,4 +64,15 @@ abstract class IntentGatekeeperHostApi {
/// [PackageManager]. Returns `null` if the package is not installed or the
/// label cannot be resolved.
String? resolvePackageLabel(String packageName);
/// Returns the list of packages for which the user tapped "Always allow"
/// via a blocked-intent notification while WebLibre was not running.
/// Callers must acknowledge persisted packages via
/// [ackPendingAlwaysAllows] after Flutter settings were updated
/// successfully.
List<String> getPendingAlwaysAllows();
/// Removes the given packages from the pending "Always allow" set after
/// Flutter has successfully persisted them into its own policy store.
void ackPendingAlwaysAllows(List<String> packageNames);
}