\OCP\NotificationIManager

Interface IManager

Summary

Methods
Constants
notify()
markProcessed()
getCount()
prepare()
registerApp()
registerNotifier()
listNotifiers()
createNotification()
hasNotifiers()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

notify()

notify(\OCP\Notification\INotification  $notification) : null

Parameters

\OCP\Notification\INotification $notification

Throws

\InvalidArgumentException

When the notification is not valid

Returns

null

markProcessed()

markProcessed(\OCP\Notification\INotification  $notification) : null

Parameters

\OCP\Notification\INotification $notification

Returns

null

prepare()

prepare(\OCP\Notification\INotification  $notification, string  $languageCode) : \OCP\Notification\INotification

Parameters

\OCP\Notification\INotification $notification
string $languageCode

The code of the language that should be used to prepare the notification

Throws

\InvalidArgumentException

When the notification was not prepared by a notifier

Returns

\OCP\Notification\INotification

registerApp()

registerApp(\Closure  $service) : null

Parameters

\Closure $service

The service must implement IApp, otherwise a \InvalidArgumentException is thrown later

Returns

null

registerNotifier()

registerNotifier(\Closure  $service, \Closure  $info) : null

Parameters

\Closure $service

The service must implement INotifier, otherwise a \InvalidArgumentException is thrown later

\Closure $info

An array with the keys 'id' and 'name' containing the app id and the app name

Returns

null

listNotifiers()

listNotifiers() : array

Returns

array —

App ID => App Name

hasNotifiers()

hasNotifiers() : boolean

Returns

boolean