From 3e73c61bc85afdd4a6253d76344d5da581ba14f7 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Tue, 20 Dec 2022 16:26:11 +0000 Subject: 5538 notifications for fake loc ipscrambling --- .../e/privacymodules/permissions/IPermissionsPrivacyModule.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'privacymodule-api/src/main/java/foundation/e/privacymodules') diff --git a/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt index 6624798..ff0b3d7 100644 --- a/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt +++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt @@ -17,6 +17,7 @@ package foundation.e.privacymodules.permissions +import android.app.NotificationChannel import android.content.pm.ApplicationInfo import android.graphics.drawable.Drawable import foundation.e.privacymodules.permissions.data.AppOpModes @@ -128,4 +129,14 @@ interface IPermissionsPrivacyModule { * Returns the package name of the currently set always-on VPN application, or null. */ fun getAlwaysOnVpnPackage(): String? + + /** + * Allows users to block notifications sent through this channel, if this channel belongs to + * a package that is signed with the system signature. + * + * If the channel does not belong to a package that is signed with the system signature, this + * method does nothing, since such channels are blockable by default and cannot be set to be + * unblockable. + */ + fun setBlockable(notificationChannel: NotificationChannel) } -- cgit v1.2.1