docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ActionCreator<TPayload>

    An action creator with a payload.

    Inheritance
    object
    ActionCreator
    ActionCreator<TPayload>
    FulfilledActionCreator<TPayload>
    PendingActionCreator<TPayload>
    RejectedActionCreator<TPayload>
    Implements
    IActionCreator<TPayload>
    IActionCreator
    Inherited Members
    ActionCreator.type
    ActionCreator.Invoke()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.Redux
    Assembly: Unity.AppUI.Redux.dll
    Syntax
    [Preserve]
    public class ActionCreator<TPayload> : ActionCreator, IActionCreator<TPayload>, IActionCreator
    Type Parameters
    Name Description
    TPayload

    The type of the payload.

    Constructors

    ActionCreator(string)

    Creates a new action creator.

    Declaration
    [Preserve]
    public ActionCreator(string type)
    Parameters
    Type Name Description
    string type

    The type of the action.

    Methods

    Invoke(TPayload)

    Create the action to dispatch.

    Declaration
    public Action<TPayload> Invoke(TPayload payload)
    Parameters
    Type Name Description
    TPayload payload

    The payload of the action.

    Returns
    Type Description
    Action<TPayload>

    The action to dispatch.

    Match(IAction)

    Check if the action matches the action creator.

    Declaration
    public bool Match(IAction action)
    Parameters
    Type Name Description
    IAction action

    The action creator.

    Returns
    Type Description
    bool

    True if the action matches the action creator.

    Operators

    implicit operator ActionCreator<TPayload>(string)

    Implicitly convert a string to an action creator.

    Declaration
    public static implicit operator ActionCreator<TPayload>(string type)
    Parameters
    Type Name Description
    string type

    The type of the action.

    Returns
    Type Description
    ActionCreator<TPayload>

    The action creator.

    Implements

    IActionCreator<TPayload>
    IActionCreator
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)