NotificationObserverDispatchable
public protocol NotificationObserverDispatchable : Dispatchable
Protocol implemented by a dispatchable that wants to be dispatched in response to a notification
-
Creates the dispatchable item. If for any reason, the init decides that the dispatchable should not be sent to the Store, the init can fail (that is, returns nil)
Declaration
Swift
init?(notification: Notification)
Parameters
notification
the notification that triggered the init
Return Value
either the dispatchable item or nil