summaryrefslogtreecommitdiff
path: root/privacymodule-api/src/main/java/foundation
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-12-20 16:26:11 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-12-20 16:26:11 +0000
commit3e73c61bc85afdd4a6253d76344d5da581ba14f7 (patch)
treed9e051a0c14c293eaf666b89e31a7f5356af526d /privacymodule-api/src/main/java/foundation
parentc337df614d91484083f23745525956ec934b171e (diff)
5538 notifications for fake loc ipscrambling
Diffstat (limited to 'privacymodule-api/src/main/java/foundation')
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt11
1 files changed, 11 insertions, 0 deletions
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)
}