Interface ISubscription<TState>
A Subscription to a store. This abstraction is used by the store to manage subscriptions.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface ISubscription<in TState> : IDisposableSubscription, IDisposable
Type Parameters
| Name | Description |
|---|---|
| TState | The type of the state. |
Methods
Notify(TState)
Notify the listener of a new state.
Declaration
void Notify(TState state)
Parameters
| Type | Name | Description |
|---|---|---|
| TState | state | The new state of the store. |
Unsubscribe()
Unsubscribe from the store.
Declaration
bool Unsubscribe()
Returns
| Type | Description |
|---|---|
| bool | True if the subscription was removed, false otherwise. |