aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-09-23 16:10:25 +0200
committerGitHub <noreply@github.com>2024-09-23 16:10:25 +0200
commit643e216a2523fb2e32b85a6f680fe7441a4e848e (patch)
tree4b405f4c738f6a237685e9edd15a6f79c1250f79 /lib/public
parent40b404c5665529ebd661ab032efe24d40ab12df6 (diff)
parent5193579e4f085fc8837a641522ed02570b9b02da (diff)
downloadnextcloud-server-643e216a2523fb2e32b85a6f680fe7441a4e848e.tar.gz
nextcloud-server-643e216a2523fb2e32b85a6f680fe7441a4e848e.zip
Merge pull request #48274 from nextcloud/feat/noid/priority-notifications
feat(prioritynotifications): Allow some apps to mark notifications as priority
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Notification/INotification.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php
index 4a35ee59087..6083cca4f9a 100644
--- a/lib/public/Notification/INotification.php
+++ b/lib/public/Notification/INotification.php
@@ -264,6 +264,18 @@ interface INotification {
public function getIcon(): string;
/**
+ * @return $this
+ * @throws InvalidValueException if the app is not allowed to send priority notifications
+ * @since 31.0.0
+ */
+ public function setPriorityNotification(bool $priorityNotification): INotification;
+
+ /**
+ * @since 31.0.0
+ */
+ public function isPriorityNotification(): bool;
+
+ /**
* @return IAction
* @since 9.0.0
*/