docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISubscription<TState>

    A Subscription to a store. This abstraction is used by the store to manage subscriptions.

    Inherited Members
    IDisposableSubscription.IsValid()
    IDisposable.Dispose()
    Namespace: Unity.AppUI.Redux
    Assembly: Unity.AppUI.Redux.dll
    Syntax
    public interface ISubscription<in TState> : IDisposableSubscription, IDisposable
    Type Parameters
    Name Description
    TState

    The type of the state.

    Methods

    Notify(TState)

    Notify the listener of a new state.

    Declaration
    void Notify(TState state)
    Parameters
    Type Name Description
    TState state

    The new state of the store.

    Unsubscribe()

    Unsubscribe from the store.

    Declaration
    bool Unsubscribe()
    Returns
    Type Description
    bool

    True if the subscription was removed, false otherwise.

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