{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class SliceReducerSwitchBuilder<TState> | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SliceReducerSwitchBuilder<TState>

    The Slice Reducer Switch Builder is used to build a reducer switch statement via method chaining. This builder does not require you to create Action Creators. It will automatically create them for you.

    Inheritance
    object
    SliceReducerSwitchBuilder<TState>
    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
    Assembly: solution.dll
    Syntax
    public class SliceReducerSwitchBuilder<TState>
    Type Parameters
    Name Description
    TState

    The type of the state slice.

    Constructors

    Name Description
    SliceReducerSwitchBuilder(string)

    Creates a new Slice Reducer Switch Builder.

    Properties

    Name Description
    name

    The name of the slice.

    Methods

    Name Description
    Add(string, CaseReducer<TState>)

    Adds a case to the reducer switch statement.

    Add(CaseReducer<TState>)

    Adds a case to the reducer switch statement.

    Add<T>(string, CaseReducer<T, TState>)

    Adds a case to the reducer switch statement.

    Add<T>(CaseReducer<T, TState>)

    Adds a case to the reducer switch statement.

    BuildReducers(IEnumerable<ActionCreator>)

    Build the reducer switch statement.

    In This Article
    Back to top
    Copyright © 2023 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)