docs.unity3d.com
    Show / Hide Table of Contents

    Class ActionCreator<TPayload>

    An action creator with a payload.

    Inheritance
    Object
    ActionCreator
    ActionCreator<TPayload>
    Inherited Members
    ActionCreator.type
    ActionCreator.Invoke()
    ActionCreator.Match(Action)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.Redux
    Syntax
    public class ActionCreator<TPayload> : ActionCreator
    Type Parameters
    Name Description
    TPayload

    The type of the payload.

    Constructors

    ActionCreator(String)

    Creates a new action creator.

    Declaration
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023