{!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 ReducerSwitchBuilder<TState> | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReducerSwitchBuilder<TState>

    The Reducer Switch Builder is used to build a reducer switch statement via method chaining. You must have created Action Creators for each action type you want to handle prior to using this.

    Inheritance
    object
    ReducerSwitchBuilder<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 ReducerSwitchBuilder<TState>
    Type Parameters
    Name Description
    TState

    The type of the state slice.

    Methods

    Name Description
    AddCase(ActionCreator, CaseReducer<TState>)

    Adds a case to the reducer switch statement.

    AddCase<T>(ActionCreator<T>, CaseReducer<T, TState>)

    Adds a case to the reducer switch statement.

    AddDefaultCase(CaseReducer<TState>)

    Adds a default case to the reducer switch statement. A default case is a case that will be executed if no other cases match.

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

    Adds a default case to the reducer switch statement. A default case is a case that will be executed if no other cases match.

    AddMatcher(ActionMatcher, CaseReducer<TState>)

    Adds a matcher case to the reducer switch statement. A matcher case is a case that will be executed if the action type matches the predicate.

    AddMatcher<T>(ActionMatcher, CaseReducer<T, TState>)

    Adds a matcher case to the reducer switch statement. A matcher case is a case that will be executed if the action type matches the predicate.

    BuildReducer(TState)

    Builds 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)