diff options
Diffstat (limited to 'lib/public/Dashboard/IReloadableWidget.php')
-rw-r--r-- | lib/public/Dashboard/IReloadableWidget.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/Dashboard/IReloadableWidget.php b/lib/public/Dashboard/IReloadableWidget.php new file mode 100644 index 00000000000..80f0181a33c --- /dev/null +++ b/lib/public/Dashboard/IReloadableWidget.php @@ -0,0 +1,22 @@ +<?php + +declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCP\Dashboard; + +/** + * Allow {@see IAPIWidgetV2} to reload their items + * + * @since 27.1.0 + */ +interface IReloadableWidget extends IAPIWidgetV2 { + /** + * Periodic interval in seconds in which to reload the widget's items + * + * @since 27.1.0 + */ + public function getReloadInterval(): int; +} |