aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Dashboard/IReloadableWidget.php
blob: 80f0181a33cc808ef04e89408a9748a8a14fb579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}