ObserverInterceptor
public struct ObserverInterceptor
Interceptor that can be use to observe behaviours and dispatch items as a response.
You can add as many OnserverInterceptor
as you want to your application.
-
Creates a new
ObserverInterceptor
that observes the passed eventsDeclaration
Swift
public static func observe(_ items: [ObserverType]) -> StoreInterceptor
Parameters
items
the list of events to observe
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