Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMVVMViewModelBase
- UUIFrameworkWidget
- UUIFrameworkButton
- UUIFrameworkCanvasBox
- UUIFrameworkColorBlock
- UUIFrameworkImageBlock
- UUIFrameworkOverlay
- UUIFrameworkSimpleButton
- UUIFrameworkStackBox
- UUIFrameworkTextBase
- UUIFrameworkTextBlock
- UUIFrameworkUserWidget
References
| Module | ModelViewViewModel |
| Header | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/MVVMViewModelBase.h |
| Include | #include "MVVMViewModelBase.h" |
Syntax
UCLASS&40;Blueprintable, Abstract, DisplayName&61;"MVVM Base Viewmodel"&41;
class UMVVMViewModelBase :
public UObject,
public INotifyFieldValueChanged
Remarks
Base class for MVVM viewmodel.
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArray< UE::FieldNotification::FFieldMulticastDelegate::FDelegateView > | |||
| void | K2_AddFieldValueChangedDelegate
(
FFieldNotificationId FieldId, |
||
| void | K2_RemoveFieldValueChangedDelegate
(
FFieldNotificationId FieldId, |
||
| bool | SetPropertyValue
(
T& Value, |
Set the new value and notify if the property value changed. | |
| bool | SetPropertyValue
(
FText& Value, |
Overridden from INotifyFieldValueChanged
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | AddFieldValueChangedDelegate
(
UE::FieldNotification::FFieldId InFieldId, |
Add a delegate that will be notified when the FieldId is value changed. | |
| void | BroadcastFieldValueChanged
(
UE::FieldNotification::FFieldId InFieldId |
Broadcast to the registered delegate that the FieldId value changed. | |
| const UE::FieldNotification::IClassDescriptor & | |||
| int32 | RemoveAllFieldValueChangedDelegates
(
const void* InUserObject |
Remove all the delegate that are bound to the specified UserObject. | |
| int32 | RemoveAllFieldValueChangedDelegates
(
UE::FieldNotification::FFieldId InFieldId, |
Remove all the delegate that are bound to the specified Field and UserObject. | |
| bool | RemoveFieldValueChangedDelegate
(
UE::FieldNotification::FFieldId InFieldId, |
Remove a delegate that was added. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FFieldNotificationClassDescriptor |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | K2_BroadcastFieldValueChanged
(
FFieldNotificationId FieldId |
BroadcastFieldValueChanged has been deprecated, please use the regular blueprint setter. | |
| bool | K2_SetPropertyValue
(
const int32& OldValue, |
SetPropertyValue has been deprecated, please use the regular blueprint setter. |