docs.unity3d.com
    Show / Hide Table of Contents

    Class ActionCreator

    An action creator.

    Inheritance
    Object
    ActionCreator
    ActionCreator<TPayload>
    Inherited Members
    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

    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
    Boolean

    True if the action matches the action creator.

    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