Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel
Base class for MVVM viewmodel.
| Name | UMVVMViewModelBase |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/MVVMViewModelBase.h |
| Include Path | #include "MVVMViewModelBase.h" |
Syntax
UCLASS (MinimalAPI, Blueprintable, Abstract, DisplayName="MVVM Base Viewmodel")
class UMVVMViewModelBase :
public UObject ,
public INotifyFieldValueChanged
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMVVMViewModelBase
Implements Interfaces
Derived Classes
UMVVMViewModelBase derived class hierarchy
Structs
| Name | Remarks |
|---|---|
| FFieldNotificationClassDescriptor |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NotificationDelegates | UE::MVVM::FMVVMFieldNotificationDelegates | MVVMViewModelBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< UE::FieldNotification::FFieldMulticastDelegate::FDelegateView > GetNotificationDelegateView() |
MVVMViewModelBase.h | ||
void K2_AddFieldValueChangedDelegate
(
FFieldNotificationId FieldId, |
MVVMViewModelBase.h |
|
|
void K2_RemoveFieldValueChangedDelegate
(
FFieldNotificationId FieldId, |
MVVMViewModelBase.h |
|
Overridden from INotifyFieldValueChanged
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FDelegateHandle AddFieldValueChangedDelegate
(
UE::FieldNotification::FFieldId InFieldId, |
MVVMViewModelBase.h | ||
virtual void BroadcastFieldValueChanged
(
UE::FieldNotification::FFieldId InFieldId |
MVVMViewModelBase.h | ||
virtual const UE::FieldNotification::IClassDescriptor & GetFieldNotificationDescriptor() |
MVVMViewModelBase.h | ||
virtual int32 RemoveAllFieldValueChangedDelegates
(
FDelegateUserObjectConst InUserObject |
MVVMViewModelBase.h | ||
virtual int32 RemoveAllFieldValueChangedDelegates
(
UE::FieldNotification::FFieldId InFieldId, |
MVVMViewModelBase.h | ||
virtual bool RemoveFieldValueChangedDelegate
(
UE::FieldNotification::FFieldId InFieldId, |
MVVMViewModelBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void K2_BroadcastFieldValueChanged
(
FFieldNotificationId FieldId |
MVVMViewModelBase.h |
|
|
bool K2_SetPropertyValue
(
const int32& OldValue, |
MVVMViewModelBase.h |
|
|
bool SetPropertyValue
(
T& Value, |
Set the new value and notify if the property value changed. | MVVMViewModelBase.h | |
bool SetPropertyValue
(
FText& Value, |
MVVMViewModelBase.h | ||
bool SetPropertyValue
(
TArray< FText >& Value, |
MVVMViewModelBase.h |