Interface IDevToolsService
The service that provides a set of tools for debugging and inspecting the state of the store.
Namespace: Unity.AppUI.Redux.DevTools
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IDevToolsService
Methods
Connect(IInstrumentedStore)
Connect the DevTools to a store.
Declaration
void Connect(IInstrumentedStore store)
Parameters
Type | Name | Description |
---|---|---|
IInstrumented |
store | The store to connect to. |
Disconnect(IInstrumentedStore)
Disconnect the DevTools from a store.
Declaration
void Disconnect(IInstrumentedStore store)
Parameters
Type | Name | Description |
---|---|---|
IInstrumented |
store | The store to disconnect from. |
GetConnectedStores()
Get the stores that the DevTools are connected to.
Declaration
IInstrumentedStore[] GetConnectedStores()
Returns
Type | Description |
---|---|
IInstrumented |
The stores that the DevTools are connected to. |
GetStoreById(string)
Get a store by its ID if it is connected to the DevTools.
Declaration
IInstrumentedStore GetStoreById(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the store. |
Returns
Type | Description |
---|---|
IInstrumented |
The store if it is connected to the DevTools; otherwise, null. |
Events
connectedStoresChanged
Event that is invoked when the list of connected stores has changed.
Declaration
event Action connectedStoresChanged
Event Type
Type | Description |
---|---|
Action |