summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-11 08:22:51 +0200
committerJulius Härtl <jus@bitgrid.net>2021-06-16 17:12:56 +0200
commita94236483e26785dcaf97fb10e863f82348eb068 (patch)
tree72acc7ac8eb955e93704bf563cc2973149ab9f97 /lib/public
parent4c93249514783181115be8bb040de701bffdba10 (diff)
downloadnextcloud-server-a94236483e26785dcaf97fb10e863f82348eb068.tar.gz
nextcloud-server-a94236483e26785dcaf97fb10e863f82348eb068.zip
Let apps toggle an unread counter on app icons
Co-authored-by: Louis Chemineau <louis@chmn.me> Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/INavigationManager.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/INavigationManager.php b/lib/public/INavigationManager.php
index 189342b4cc4..71979042811 100644
--- a/lib/public/INavigationManager.php
+++ b/lib/public/INavigationManager.php
@@ -90,4 +90,13 @@ interface INavigationManager {
* @since 14.0.0
*/
public function getAll(string $type = self::TYPE_APPS): array;
+
+ /**
+ * Set an unread counter for navigation entries
+ *
+ * @param string $id id of the navigation entry
+ * @param int $unreadCounter Number of unread entries (0 to hide the counter which is the default)
+ * @since 22.0.0
+ */
+ public function setUnreadCounter(string $id, int $unreadCounter): void;
}