Class DevToolsService
A class that provides a set of tools for debugging and inspecting the state of the store.
Implements
Inherited Members
Namespace: Unity.AppUI.Redux.DevTools
Assembly: Unity.AppUI.Redux.dll
Syntax
public class DevToolsService : IDevToolsService
Methods
Connect(IInstrumentedStore)
Connect the DevTools to a store.
Declaration
public void Connect(IInstrumentedStore store)
Parameters
Type | Name | Description |
---|---|---|
IInstrumented |
store | The store to connect to. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if |
Disconnect(IInstrumentedStore)
Disconnect the DevTools from a store.
Declaration
public void Disconnect(IInstrumentedStore store)
Parameters
Type | Name | Description |
---|---|---|
IInstrumented |
store | The store to disconnect from. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if |
GetConnectedStores()
Get the stores that the DevTools are connected to.
Declaration
public 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
public 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 connected stores change.
Declaration
public event Action connectedStoresChanged
Event Type
Type | Description |
---|---|
Action |