Navigation
API > API/Runtime > API/Runtime/Analytics > API/Runtime/Analytics/IAnalyticsProvider
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RecordItemPurchase
(
const FString& ItemId, |
Record an in-game purchase of a an item. | Interfaces/IAnalyticsProvider.h | |
virtual void RecordItemPurchase
(
const FString& ItemId, |
Record an in-game purchase of a an item. | Interfaces/IAnalyticsProvider.h | |
virtual void RecordItemPurchase
(
const FString& ItemId, |
Record an in-game purchase of a an item. | Interfaces/IAnalyticsProvider.h |
RecordItemPurchase(const FString &, int)
Description
Record an in-game purchase of a an item.
Note that not all providers support item purchase events. In this case this method is equivalent to sending a regular event with name "Item Purchase".
| Name | RecordItemPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
void RecordItemPurchase
(
const FString & ItemId,
int ItemQuantity
)
Parameters
| Name | Remarks |
|---|---|
| ItemId | the ID of the item, should be registered with the provider first. |
| ItemQuantity | the number of Items purchased. |
RecordItemPurchase(const FString &, int, const TArray< FAnalyticsEventAttribute > &)
Description
Record an in-game purchase of a an item.
Note that not all providers support item purchase events. In this case this method is equivalent to sending a regular event with name "Item Purchase".
| Name | RecordItemPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordItemPurchase
(
const FString & ItemId,
int ItemQuantity,
const TArray < FAnalyticsEventAttribute > & EventAttrs
)
Parameters
| Name | Remarks |
|---|---|
| ItemId | the ID of the item, should be registered with the provider first. |
| ItemQuantity | the number of Items purchased. |
| EventAttrs | a list of key/value pairs to assign to this event |
RecordItemPurchase(const FString &, const FString &, int, int)
Description
Record an in-game purchase of a an item.
Note that not all providers support item purchase events. In this case this method is equivalent to sending a regular event with name "Item Purchase".
| Name | RecordItemPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordItemPurchase
(
const FString & ItemId,
const FString & Currency,
int PerItemCost,
int ItemQuantity
)
Parameters
| Name | Remarks |
|---|---|
| ItemId | the ID of the item, should be registered with the provider first. |
| Currency | the currency of the purchase (ie, Gold, Coins, etc), should be registered with the provider first. |
| PerItemCost | the cost of one item in the currency given. |
| ItemQuantity | the number of Items purchased. |