Class Store<State> | WebGL Publisher | 3.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class Store<State>

    manages the communication between all the application components

    Inheritance
    Object
    Store<State>
    Namespace: Unity.Connect.Share.Editor
    Syntax
    public class Store<State>
    Type Parameters
    Name Description
    State

    Constructors

    Store(Reducer<State>, State, Middleware<State>[])

    Constructor

    Declaration
    public Store(Reducer<State> reducer, State initialState = null, params Middleware<State>[] middlewares)
    Parameters
    Type Name Description
    Reducer<State> reducer
    State initialState
    Middleware<State>[] middlewares

    Fields

    stateChanged

    Delegate that reacts on state change

    Declaration
    public StateChangedHandler<State> stateChanged
    Field Value
    Type Description
    StateChangedHandler<State>

    Properties

    state

    The state

    Declaration
    public State state { get; }
    Property Value
    Type Description
    State

    Methods

    Dispatch(Object)

    Dispatches an action

    Declaration
    public object Dispatch(object action)
    Parameters
    Type Name Description
    Object action
    Returns
    Type Description
    Object
    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