summaryrefslogtreecommitdiff
path: root/privacymodule-api/src/main
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
commit6265efaf3155658bd9c2a6e009fb25dc438b5258 (patch)
tree153a4be153049e09762482c124695ec776f032ae /privacymodule-api/src/main
parentcfa3e314f19b81d12694ca797f448b3966442958 (diff)
parent3e73c61bc85afdd4a6253d76344d5da581ba14f7 (diff)
Merge branch '5538-notifications_for_fake_loc_ipscrambling' into 'main'
5538 notifications for fake loc ipscrambling See merge request e/os/advanced-privacy!109
Diffstat (limited to 'privacymodule-api/src/main')
-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)
}