docs.unity3d.com
    Show / Hide Table of Contents

    Class NotifyValueChangingExtensions

    Extensions for INotifyValueChanging<TValueType>.

    Inheritance
    Object
    NotifyValueChangingExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    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.

    UnityEngine.UIElements.EventCallback<ChangingEvent<TValueType>> callback

    The callback.

    Returns
    Type Description
    Boolean

    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.

    UnityEngine.UIElements.EventCallback<ChangingEvent<TValueType>> callback

    The callback.

    Returns
    Type Description
    Boolean

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

    Type Parameters
    Name Description
    TValueType

    The type of value handled by the UI component.

    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