Class NotifyValueChangingExtensions
Extensions for INotifyValueChanging<TValueType>.
Inherited Members
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. |