Navigation
API > API/Runtime > API/Runtime/Analytics > API/Runtime/Analytics/FAnalyticsPropertyStore > API/Runtime/Analytics/FAnalyticsPropertyStore/Update
- IAnalyticsPropertyStore::Update()
- FAnalyticsPropertyStore::Update()
References
| Module | Analytics |
| Header | /Engine/Source/Runtime/Analytics/Analytics/Public/AnalyticsPropertyStore.h |
| Include | #include "AnalyticsPropertyStore.h" |
| Source | /Engine/Source/Runtime/Analytics/Analytics/Private/AnalyticsPropertyStore.cpp |
virtual EStatusCode Update
&40;
const FString & Key,
const TFunction< bool(int32 &)> & UpdateFn
&41;
Remarks
Updates an exiting value. The operation is atomic from the caller perspective. The function reads the actual value and invoke UpdateFn callback with the actual value. The callback can update the actual value or decline the operation. If the key is not found, the callback is not invoked. One of the following code
- EStatusCode::Success if the entire operation succeeded.
- EStatusCode::BadType if the key/value pair exists, but the proposed value did not match the actual value type.
- EStatusCode::Declined if the callback UpdateFn returned false and the operation was declined.
Parameters
| Name | Description |
|---|---|
| Key | The name of the key to update. |
| UpdateFn | The function to invoke, passing the actual value. |