IManager¶
-
interface
OCP\Notification\IManager¶ - Interface IManager
Implemented by: OC\Notification\ManagerSource: lib/public/Notification/IManager.php#34 Parent: OCP\Notification\IAppParent: OCP\Notification\INotifier
Methods¶
-
public
OCP\Notification\IManager::registerApp($appClass)¶ Source: Parameters: - $appClass (string) The service must implement IApp, otherwise a
InvalidArgumentException is thrown later
Since: 17.0.0
-
public
OCP\Notification\IManager::registerNotifier($service, $info)¶ Source: Parameters: - $service (
Closure) The service must implement INotifier, otherwise a
InvalidArgumentException is thrown later * $info (
Closure) An array with the keys ‘id’ and ‘name’ containing the app id and the app nameDeprecated: 17.0.0 use registerNotifierService instead.
Since: 8.2.0 - Parameter $info was added in 9.0.0
- $service (
-
public
OCP\Notification\IManager::registerNotifierService($notifierService)¶ Source: Parameters: - $notifierService (string) The service must implement INotifier, otherwise a
InvalidArgumentException is thrown later
Since: 17.0.0
-
public
OCP\Notification\IManager::getNotifiers()¶ Source: lib/public/Notification/IManager.php#64 Returns: \OCP\Notification\INotifier[]Since: 9.0.0
-
public
OCP\Notification\IManager::createNotification()¶ Source: lib/public/Notification/IManager.php#70 Returns: \OCP\Notification\INotificationSince: 9.0.0
-
public
OCP\Notification\IManager::hasNotifiers()¶ Source: lib/public/Notification/IManager.php#76 Returns: bool Since: 9.0.0
-
public
OCP\Notification\IManager::setPreparingPushNotification($preparingPushNotification)¶ Source: Parameters: - $preparingPushNotification (bool)
Since: 14.0.0
-
public
OCP\Notification\IManager::isPreparingPushNotification()¶ Source: lib/public/Notification/IManager.php#88 Returns: bool Since: 14.0.0
-
public
OCP\Notification\IManager::dismissNotification($notification)¶ Source: lib/public/Notification/IManager.php#93 Since: 18.0.0
-
public
OCP\Notification\IManager::defer()¶ - Start deferring notifications until `flush()` is calledThe calling app should only “flush” when it got returned true on the defer call,otherwise another app is deferring the sending already.
Source: lib/public/Notification/IManager.php#103 Returns: bool Since: 20.0.0
-
public
OCP\Notification\IManager::flush()¶ - Send all deferred notifications that have been stored since `defer()` was called
Source: lib/public/Notification/IManager.php#110 Since: 20.0.0