Navigation
API > API/Runtime > API/Runtime/NetCore
Central object (usually within NetDriver) which handles registration/retrieval/type-checking of net analytics data holders.
| Name | FNetAnalyticsAggregator |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Analytics/NetAnalytics.h |
| Include Path | #include "Net/Core/Analytics/NetAnalytics.h" |
Syntax
class FNetAnalyticsAggregator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Net/Core/Analytics/NetAnalytics.h | |||
FNetAnalyticsAggregator
(
TSharedPtr< IAnalyticsProvider > InProvider, |
Base constructorFNetAnalyticsAggregator | Net/Core/Analytics/NetAnalytics.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAnalyticsAppender | TFunction< void(TArray< FAnalyticsEventAttribute > &)> | Net/Core/Analytics/NetAnalytics.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AnalyticsAppender | FAnalyticsAppender | Optional functor that can be used to append game specific attributes to your analytics | Net/Core/Analytics/NetAnalytics.h | |
| AnalyticsDataConfigMap | TMap< FName, bool > | Maps analytics data holder names, to a config value specifying whether that data holder is enabled or not | Net/Core/Analytics/NetAnalytics.h | |
| AnalyticsDataMap | TMap< FName, TNetAnalyticsDataRef<> > | Maps net analytics data holders, to their specified name | Net/Core/Analytics/NetAnalytics.h | |
| AnalyticsDataTypeMap | TMap< FName, FString > | Maps analytics data holder names, to their type name - to verify types and prevent miscasting | Net/Core/Analytics/NetAnalytics.h | |
| AnalyticsProvider | TSharedPtr< IAnalyticsProvider > | The analytics provider we are aggregating data for | Net/Core/Analytics/NetAnalytics.h | |
| bSentAnalytics | bool | Whether or not analytics was already sent | Net/Core/Analytics/NetAnalytics.h | |
| NetDriverName | FName | The name of the NetDriver which owns this analytics aggregator - for retrieving NetDriver-specific config values | Net/Core/Analytics/NetAnalytics.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendGameInstanceAttributes
(
TArray< FAnalyticsEventAttribute >& OutAttributes |
Adds game and engine specific attributes to the passed in array. | Net/Core/Analytics/NetAnalytics.h | |
const TSharedPtr< IAnalyticsProvider > & GetAnalyticsProvider() |
Accessor for AnalyticsProvider | Net/Core/Analytics/NetAnalytics.h | |
FName GetNetDriverName() |
Accessor for NetDriverName | Net/Core/Analytics/NetAnalytics.h | |
void Init() |
Initialize the net analytics aggregator | Net/Core/Analytics/NetAnalytics.h | |
void InitConfig() |
Initialize the net analytics aggregator config - must support hotfixing | Net/Core/Analytics/NetAnalytics.h | |
TNetAnalyticsDataPtr RegisterAnalyticsData_Internal
(
TNetAnalyticsDataRef<> InData, |
Use REGISTER_NET_ANALYTICS instead. | Net/Core/Analytics/NetAnalytics.h | |
void SendAnalytics () |
Tells the analytics data holders to finish aggregating their analytics data, and to dispatch it. | Net/Core/Analytics/NetAnalytics.h | |
void SetAnalyticsAppender
(
FAnalyticsAppender AppenderFunction |
Net/Core/Analytics/NetAnalytics.h |