docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NotifyValueChangingExtensions

    Extensions for INotifyValueChanging<TValueType>.

    Inheritance
    object
    NotifyValueChangingExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public static class NotifyValueChangingExtensions

    Methods

    RegisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)

    Register a callback which will be invoked when the UI component's value is changing.

    Declaration
    [Preserve]
    public static bool RegisterValueChangingCallback<TValueType>(this INotifyValueChanging<TValueType> control, EventCallback<ChangingEvent<TValueType>> callback)
    Parameters
    Type Name Description
    INotifyValueChanging<TValueType> control

    The UI component.

    EventCallback<ChangingEvent<TValueType>> callback

    The callback.

    Returns
    Type Description
    bool

    True if the UI component can handle callbacks, False otherwise.

    Type Parameters
    Name Description
    TValueType

    The type of value handled by the UI component.

    UnregisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)

    Unregister a callback which has been invoked when the UI component's value was changing.

    Declaration
    [Preserve]
    public static bool UnregisterValueChangingCallback<TValueType>(this INotifyValueChanging<TValueType> control, EventCallback<ChangingEvent<TValueType>> callback)
    Parameters
    Type Name Description
    INotifyValueChanging<TValueType> control

    The UI component.

    EventCallback<ChangingEvent<TValueType>> callback

    The callback.

    Returns
    Type Description
    bool

    True if the UI component can handle callbacks, False otherwise.

    Type Parameters
    Name Description
    TValueType

    The type of value handled by the UI component.

    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)