Class ActionCreator
An action creator.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: solution.dll
Syntax
public class ActionCreator
Constructors
ActionCreator(string)
Creates a new action creator.
Declaration
public ActionCreator(string type)
Parameters
Type | Name | Description |
---|---|---|
string | type | The type of the action. |
Properties
type
The type of the action. This is used to determine which reducer to call.
Declaration
public string type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Invoke()
Create the action to dispatch.
Declaration
public Action Invoke()
Returns
Type | Description |
---|---|
Action | The action to dispatch. |
Match(Action)
Check if the action matches the action creator.
Declaration
public bool Match(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The action creator. |
Returns
Type | Description |
---|---|
bool | True if the action matches the action creator. |