An Interceptor to register on a Fluxor Store. When registered it will send FluxorExplorerSnapshots to FluxorExplorer.
For FluxorExplorer to receive all actions and state changes from an app, just register the FluxorExplorerInterceptor
in the app's Fluxor Store
. When FluxorExplorer and the app are running on the same network (eg. running the app on the iOS Simulator), they will automatically connect and transmit data.
let store = Store(initialState: AppState())
#if DEBUG
store.register(interceptor: FluxorExplorerInterceptor(displayName: UIDevice.current.name))
#endif
NOTE: It is recommended to only register the interceptor in DEBUG
builds.
If the app is running on macOS and uses the App Sandbox, remember to enable the "Incoming Connections (Server)" and "Outgoing Connections (Client)", to be able to communicate with FluxorExplorer.