summaryrefslogtreecommitdiffstats
path: root/lib/public/IAvatar.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IAvatar.php')
-rw-r--r--lib/public/IAvatar.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/IAvatar.php b/lib/public/IAvatar.php
index a6731b63be9..85863357069 100644
--- a/lib/public/IAvatar.php
+++ b/lib/public/IAvatar.php
@@ -8,6 +8,7 @@
* @author Robin Appelman <robin@icewind.nl>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Thomas Müller <thomas.mueller@tmit.eu>
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license AGPL-3.0
*
@@ -26,6 +27,7 @@
*/
namespace OCP;
+
use OCP\Files\File;
use OCP\Files\NotFoundException;
@@ -79,6 +81,13 @@ interface IAvatar {
public function getFile($size);
/**
+ * @param string $text
+ * @return Color Object containting r g b int in the range [0, 255]
+ * @since 14.0.0
+ */
+ public function avatarBackgroundColor(string $text);
+
+ /**
* Handle a changed user
* @since 13.0.0
*/