Navigation
API > API/Runtime > API/Runtime/Analytics > API/Runtime/Analytics/IAnalyticsProvider
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void RecordCurrencyPurchase
(
const FString& GameCurrencyType, |
Record an in-game purchase of a an item. | Interfaces/IAnalyticsProvider.h | |
virtual void RecordCurrencyPurchase
(
const FString& GameCurrencyType, |
Record a purchase of in-game currency using real-world money. | Interfaces/IAnalyticsProvider.h | |
virtual void RecordCurrencyPurchase
(
const FString& GameCurrencyType, |
Record a purchase of in-game currency using real-world money. | Interfaces/IAnalyticsProvider.h |
RecordCurrencyPurchase(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 | RecordCurrencyPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordCurrencyPurchase
(
const FString & GameCurrencyType,
int GameCurrencyAmount
)
Parameters
| Name | Remarks |
|---|---|
| ItemId | the ID of the item, should be registered with the provider first. |
| ItemQuantity | the number of Items purchased. |
RecordCurrencyPurchase(const FString &, int, const TArray< FAnalyticsEventAttribute > &)
Description
Record a purchase of in-game currency using real-world money.
Note that not all providers support currency events. In this case this method is equivalent to sending a regular event with name "Currency Purchase".
| Name | RecordCurrencyPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordCurrencyPurchase
(
const FString & GameCurrencyType,
int GameCurrencyAmount,
const TArray < FAnalyticsEventAttribute > & EventAttrs
)
Parameters
| Name | Remarks |
|---|---|
| GameCurrencyType | type of in game currency purchased, should be registered with the provider first. |
| GameCurrencyAmount | amount of in game currency purchased. |
| EventAttrs | a list of key/value pairs to assign to this event |
RecordCurrencyPurchase(const FString &, int, const FString &, float, const FString &)
Description
Record a purchase of in-game currency using real-world money.
Note that not all providers support currency events. In this case this method is equivalent to sending a regular event with name "Currency Purchase".
| Name | RecordCurrencyPurchase |
| Type | function |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include Path | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordCurrencyPurchase
(
const FString & GameCurrencyType,
int GameCurrencyAmount,
const FString & RealCurrencyType,
float RealMoneyCost,
const FString & PaymentProvider
)
Parameters
| Name | Remarks |
|---|---|
| GameCurrencyType | type of in game currency purchased, should be registered with the provider first. |
| GameCurrencyAmount | amount of in game currency purchased. |
| RealCurrencyType | real-world currency type (like a 3-character ISO 4217 currency code, but provider dependent). |
| RealMoneyCost | cost of the currency in real world money, expressed in RealCurrencyType units. |
| PaymentProvider | Provider who brokered the transaction. Generally arbitrary, but examples are PayPal, Facebook Credits, App Store, etc. |