ObserverInterceptor
public struct ObserverInterceptor
Interceptor that can be use to observe behaviours and dispatch items as a response.
You can add as many ObserverInterceptor as you want to your application.
-
Creates a new
ObserverInterceptorthat observes the passed eventsDeclaration
Swift
public static func observe( _ items: [ObserverType], notificationCenter: NotificationCenter = .default ) -> StoreInterceptorParameters
itemsthe list of events to observe
notificationCenterthe notificationCenter used to listen to notifications
Return Value
the interceptor that observes the given items
-
Enum that contains the various events that can be observed
See moreDeclaration
Swift
public enum ObserverType
View on GitHub
ObserverInterceptor Structure Reference