engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 所有成员列表
IAnalyticsProviderET类 参考abstract

ET specific analytics provider instance. 更多...

#include <IAnalyticsProviderET.h>

+ 类 IAnalyticsProviderET 继承关系图:

Public 类型

typedef TFunction< bool(const IAnalyticsProviderET &ThisProvider, const FString &EventName)> ShouldRecordEventFunction
 Callback used before any event is actually sent. 更多...
 

Public 成员函数

virtual void BlockUntilFlushed (float InTimeoutSec)=0
 Blocks execution in the thread until all events have been flushed to the network.
 
const FString & GetAppID () const
 Method to get the AppID (APIKey) 更多...
 
const FString & GetAppVersion () const
 Method to get the AppVersion 更多...
 
virtual const FAnalyticsET::Config & GetConfig () const =0
 Return the current provider configuration.
 
virtual FAnalyticsEventAttribute GetDefaultEventAttribute (int AttributeIndex) const =0
 Used with GetDefaultEventAttributeCount to iterate over the default attributes. 更多...
 
virtual int32 GetDefaultEventAttributeCount () const =0
 Used with GetDefaultAttribute to iterate over the default attributes. 更多...
 
virtual TArray< FAnalyticsEventAttribute > GetDefaultEventAttributesSafe () const =0
 
void RecordEvent (const FString &EventName)
 Overload for RecordEvent that takes no parameters 更多...
 
void RecordEvent (const FString &EventName, const FAnalyticsEventAttribute &Attribute)
 Overload for RecordEvent that takes a single attribute 更多...
 
void RecordEvent (const FString &EventName, const FString &ParamName, const FString &ParamValue)
 Overload for RecordEvent that takes a single name/value pair 更多...
 
virtual void RecordEvent (const FString &EventName, const TArray< FAnalyticsEventAttribute > &Attributes) override
 This class augments RecordEvent with a version that takes the EventName by rvalue reference to save a string copy. 更多...
 
virtual void RecordEvent (const FString &EventName, const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Records a named event with an array of attributes 更多...
 
virtual void RecordEvent (FString &&EventName, const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Primary RecordEvent API. 更多...
 
virtual void SetAppID (FString &&AppID)=0
 Special setter to set the AppID, something that is not normally allowed for third party analytics providers. 更多...
 
virtual void SetAppVersion (FString &&AppVersion)=0
 Sets the AppVersion. 更多...
 
virtual void SetDefaultEventAttributes (TArray< FAnalyticsEventAttribute > &&Attributes)=0
 Sets an array of attributes that will automatically be appended to any event that is sent. 更多...
 
virtual void SetEventCallback (const OnEventRecorded &Callback)=0
 Set a callback to be invoked any time an event is queued. 更多...
 
virtual void SetShouldRecordEventFunc (const ShouldRecordEventFunction &ShouldRecordEventFunc)=0
 Set an event filter to dynamically control whether an event should be sent.
 
virtual void SetURLEndpoint (const FString &UrlEndpoint, const TArray< FString > &AltDomains)=0
 Updates the default URL endpoint and AltDomains.
 
virtual bool ShouldRecordEvent (const FString &EventName) const =0
 Allows higher level code to abort logic to set up for a RecordEvent call by checking the filter that will be used to send the event first. 更多...
 
bool StartSession ()
 Starts a session. 更多...
 
bool StartSession (const FAnalyticsEventAttribute &Attribute)
 Overload for StartSession that takes a single attribute 更多...
 
bool StartSession (const FString &ParamName, const FString &ParamValue)
 Overload for StartSession that takes a single name/value pair 更多...
 
virtual bool StartSession (const TArray< FAnalyticsEventAttribute > &Attributes) override
 This class augments StartSession with a version that takes the SessionID instead of always generating it. 更多...
 
virtual bool StartSession (const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Starts a session. 更多...
 
virtual bool StartSession (FString InSessionID, const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Primary StartSession API. 更多...
 
- Public 成员函数 继承自 IAnalyticsProvider
virtual void EndSession ()=0
 Ends the session. 更多...
 
virtual void FlushEvents ()=0
 Flush any cached events to the analytics provider. 更多...
 
virtual FString GetSessionID () const =0
 Gets the opaque session identifier string for the provider.
 
virtual FString GetUserID () const =0
 Gset the current UserID. 更多...
 
virtual void RecordCurrencyGiven (const FString &GameCurrencyType, int GameCurrencyAmount)
 Record a gift of in-game currency from the game itself. 更多...
 
virtual void RecordCurrencyGiven (const FString &GameCurrencyType, int GameCurrencyAmount, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Record a gift of in-game currency from the game itself. 更多...
 
virtual void RecordCurrencyPurchase (const FString &GameCurrencyType, int GameCurrencyAmount)
 Record an in-game purchase of a an item. 更多...
 
virtual void RecordCurrencyPurchase (const FString &GameCurrencyType, int GameCurrencyAmount, const FString &RealCurrencyType, float RealMoneyCost, const FString &PaymentProvider)
 Record a purchase of in-game currency using real-world money. 更多...
 
virtual void RecordCurrencyPurchase (const FString &GameCurrencyType, int GameCurrencyAmount, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Record a purchase of in-game currency using real-world money. 更多...
 
virtual void RecordError (const FString &Error)
 Records an error that has happened in the game 更多...
 
virtual void RecordError (const FString &Error, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Records an error that has happened in the game 更多...
 
void RecordEvent (const FString &EventName)
 Overload for RecordEvent that takes no parameters 更多...
 
void RecordEvent (const FString &EventName, const FAnalyticsEventAttribute &Attribute)
 Overload for RecordEvent that takes a single attribute 更多...
 
void RecordEvent (const FString &EventName, const FString &ParamName, const FString &ParamValue)
 Overload for RecordEvent that takes a single name/value pair 更多...
 
virtual void RecordEvent (const FString &EventName, const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Records a named event with an array of attributes 更多...
 
virtual void RecordItemPurchase (const FString &ItemId, const FString &Currency, int PerItemCost, int ItemQuantity)
 Record an in-game purchase of a an item. 更多...
 
void RecordItemPurchase (const FString &ItemId, int ItemQuantity)
 Record an in-game purchase of a an item. 更多...
 
virtual void RecordItemPurchase (const FString &ItemId, int ItemQuantity, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Record an in-game purchase of a an item. 更多...
 
virtual void RecordProgress (const FString &ProgressType, const FString &ProgressHierarchy)
 Record a player progression event that has happened in the game 更多...
 
virtual void RecordProgress (const FString &ProgressType, const FString &ProgressHierarchy, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Record a player progression event that has happened in the game 更多...
 
virtual void RecordProgress (const FString &ProgressType, const TArray< FString > &ProgressHierarchy, const TArray< FAnalyticsEventAttribute > &EventAttrs)
 Record a player progression event that has happened in the game 更多...
 
virtual void SetAge (const int32 InAge)
 Sets the location the game believes the user is playing in as part of the session
 
virtual void SetBuildInfo (const FString &InBuildInfo)
 Sets a user defined string as the build information/version for the session
 
virtual void SetGender (const FString &InGender)
 Sets the gender the game believes the user is as part of the session
 
virtual void SetLocation (const FString &InLocation)
 Sets the location the game believes the user is playing in as part of the session
 
virtual bool SetSessionID (const FString &InSessionID)=0
 Sets the session ID of the analytics session. 更多...
 
virtual void SetUserID (const FString &InUserID)=0
 Set the UserID for use with analytics. 更多...
 
bool StartSession ()
 Starts a session. 更多...
 
bool StartSession (const FAnalyticsEventAttribute &Attribute)
 Overload for StartSession that takes a single attribute 更多...
 
bool StartSession (const FString &ParamName, const FString &ParamValue)
 Overload for StartSession that takes a single name/value pair 更多...
 
virtual bool StartSession (const TArray< FAnalyticsEventAttribute > &Attributes)=0
 Starts a session. 更多...
 

详细描述

ET specific analytics provider instance.

Exposes additional APIs to support Json-based events, default attributes, and allowing events to be disabled (generally via hotfixing).

成员类型定义说明

◆ ShouldRecordEventFunction

typedef TFunction<bool(const IAnalyticsProviderET& ThisProvider, const FString& EventName)> IAnalyticsProviderET::ShouldRecordEventFunction

Callback used before any event is actually sent.

Allows higher level code to disable events.

成员函数说明

◆ GetAppID()

const FString & IAnalyticsProviderET::GetAppID ( ) const
inline

Method to get the AppID (APIKey)

返回
the AppID (APIKey)

◆ GetAppVersion()

const FString & IAnalyticsProviderET::GetAppVersion ( ) const
inline

Method to get the AppVersion

返回
the AppVersion

◆ GetDefaultEventAttribute()

virtual FAnalyticsEventAttribute IAnalyticsProviderET::GetDefaultEventAttribute ( int  AttributeIndex) const
pure virtual

Used with GetDefaultEventAttributeCount to iterate over the default attributes.

Range checking is not done, similar to TArray. Use GetDefaultAttributeCount() first!

返回
one attribute of the default attributes so we don't have to copy the entire attribute array.

◆ GetDefaultEventAttributeCount()

virtual int32 IAnalyticsProviderET::GetDefaultEventAttributeCount ( ) const
pure virtual

Used with GetDefaultAttribute to iterate over the default attributes.

返回
the number of default attributes are currently being applied.

◆ GetDefaultEventAttributesSafe()

virtual TArray< FAnalyticsEventAttribute > IAnalyticsProviderET::GetDefaultEventAttributesSafe ( ) const
pure virtual
返回
the current array of default attributes.

◆ RecordEvent() [1/6]

void IAnalyticsProvider::RecordEvent ( const FString &  EventName)
inline

Overload for RecordEvent that takes no parameters

参数
EventNamename of the event

◆ RecordEvent() [2/6]

void IAnalyticsProvider::RecordEvent ( const FString &  EventName,
const FAnalyticsEventAttribute &  Attribute 
)
inline

Overload for RecordEvent that takes a single attribute

参数
EventNamename of the event
Attributeattribute name and value

◆ RecordEvent() [3/6]

void IAnalyticsProvider::RecordEvent ( const FString &  EventName,
const FString &  ParamName,
const FString &  ParamValue 
)
inline

Overload for RecordEvent that takes a single name/value pair

参数
EventNamename of the event
ParamNameattribute name
ParamValueattribute value

◆ RecordEvent() [4/6]

virtual void IAnalyticsProviderET::RecordEvent ( const FString &  EventName,
const TArray< FAnalyticsEventAttribute > &  Attributes 
)
inlineoverridevirtual

This class augments RecordEvent with a version that takes the EventName by rvalue reference to save a string copy.

Implement the base version in terms of this one.

实现了 IAnalyticsProvider.

◆ RecordEvent() [5/6]

virtual void IAnalyticsProvider::RecordEvent ( const FString &  EventName,
const TArray< FAnalyticsEventAttribute > &  Attributes 
)
virtual

Records a named event with an array of attributes

参数
EventNamename of the event
Attributesarray of attribute name/value pairs

实现了 IAnalyticsProvider.

◆ RecordEvent() [6/6]

virtual void IAnalyticsProviderET::RecordEvent ( FString &&  EventName,
const TArray< FAnalyticsEventAttribute > &  Attributes 
)
pure virtual

Primary RecordEvent API.

Allow move semantics to capture the attributes.

◆ SetAppID()

virtual void IAnalyticsProviderET::SetAppID ( FString &&  AppID)
pure virtual

Special setter to set the AppID, something that is not normally allowed for third party analytics providers.

参数
AppIDThe new AppID to set

◆ SetAppVersion()

virtual void IAnalyticsProviderET::SetAppVersion ( FString &&  AppVersion)
pure virtual

Sets the AppVersion.

参数
AppVersionThe new AppVersion.

◆ SetDefaultEventAttributes()

virtual void IAnalyticsProviderET::SetDefaultEventAttributes ( TArray< FAnalyticsEventAttribute > &&  Attributes)
pure virtual

Sets an array of attributes that will automatically be appended to any event that is sent.

Logical effect is like adding them to all events before calling RecordEvent. Practically, it is implemented much more efficiently from a storage and allocation perspective.

◆ SetEventCallback()

virtual void IAnalyticsProviderET::SetEventCallback ( const OnEventRecorded &  Callback)
pure virtual

Set a callback to be invoked any time an event is queued.

参数
thecallback

◆ ShouldRecordEvent()

virtual bool IAnalyticsProviderET::ShouldRecordEvent ( const FString &  EventName) const
pure virtual

Allows higher level code to abort logic to set up for a RecordEvent call by checking the filter that will be used to send the event first.

参数
EventNameThe name of the event.
返回
true if the event will be recorded using the currently installed ShouldRecordEvent function

◆ StartSession() [1/6]

bool IAnalyticsProvider::StartSession ( )
inline

Starts a session.

It's technically legal to send events without starting a session. The use case is for backends and dedicated servers to send events on behalf of a user without technically affecting the session length of the local player. Local players log in and start/end the session, but remote players simply call SetUserID and start sending events, which is legal and analytics providers should gracefully handle this. Repeated calls to this method will be ignored.

返回
true if the session started successfully.

◆ StartSession() [2/6]

bool IAnalyticsProvider::StartSession ( const FAnalyticsEventAttribute &  Attribute)
inline

Overload for StartSession that takes a single attribute

参数
Attributeattribute name and value

◆ StartSession() [3/6]

bool IAnalyticsProvider::StartSession ( const FString &  ParamName,
const FString &  ParamValue 
)
inline

Overload for StartSession that takes a single name/value pair

参数
ParamNameattribute name
ParamValueattribute value

◆ StartSession() [4/6]

virtual bool IAnalyticsProviderET::StartSession ( const TArray< FAnalyticsEventAttribute > &  Attributes)
inlineoverridevirtual

This class augments StartSession with a version that takes the SessionID instead of always generating it.

Implement the base version in terms of this one.

实现了 IAnalyticsProvider.

◆ StartSession() [5/6]

virtual bool IAnalyticsProvider::StartSession ( const TArray< FAnalyticsEventAttribute > &  Attributes)
virtual

Starts a session.

See parameterless-version for contract details.

参数
Attributesattributes of the session. Arbitrary set of key/value pairs that will be sent with the StartSession event that this should also trigger.

实现了 IAnalyticsProvider.

◆ StartSession() [6/6]

virtual bool IAnalyticsProviderET::StartSession ( FString  InSessionID,
const TArray< FAnalyticsEventAttribute > &  Attributes 
)
pure virtual

Primary StartSession API.

Allow move semantics to capture the attributes.


该类的文档由以下文件生成: