FAnalytics

The public interface for interacting with analytics.

Windows
MacOS
Linux

Inheritance Hierarchy

IModuleInterface

FAnalytics

References

Module

Analytics

Header

/Engine/Source/Runtime/Analytics/Analytics/Public/Analytics.h

Include

#include "Analytics.h"

Syntax

class FAnalytics : public IModuleInterface

Remarks

The public interface for interacting with analytics. The basic usage is to call CreateAnalyticsProvider and supply a configuration delegate. Specific analytics providers may choose to provide strongly-typed factory methods for configuration, in which case you are free to call that directly if you know exactly what provider you will be using. This class merely facilitates loosely bound provider configuration so the provider itself can be configured purely via config.

BuildType methods exist as a common way for an analytics provider to configure itself for debug/development/playtest/release scenarios. Again, you can choose to ignore this info and provide a generic configuration delegate that does anything it wants.

To create an analytics provider using all the system defaults, simply call the static GetDefaultConfiguredProvider().

Constructors

Name Description

Public function

FAnalytics()

Module functionality.

Destructors

Name Description

Public function Virtual

~FAnalytics()

Functions

Name Description

Public function Virtual

TSharedPtr< ...

 

CreateAnalyticsProvider

(
    const FName& ProviderModuleName,
    const FAnalyticsProviderConfigurati...
)

Provider Factory functions.

Public function Static

FAnalytics &

 

Get()

Singleton-like access to this module's interface.

Public function Virtual

FString

 

GetConfigValueFromIni

(
    const FString& IniName,
    const FString& SectionName,
    const FString& KeyName,
    bool bIsRequired
)

Helper for reading configuration values from an INI file (which will be a common scenario).

Public function Virtual

TSharedPtr< ...

 

GetDefaultConfiguredProvider()

Creates an instance of the default configured analytics provider.

Public function Static

bool

 

IsAvailable()

Checks to see if this module is loaded and ready.

Public function Virtual

void

 

WriteConfigValueToIni

(
    const FString& IniName,
    const FString& SectionName,
    const FString& KeyName,
    const FString& Value
)

Helper for writing configuration values from to an INI file (which will be a common scenario).

Classes

Name

Description

Public struct

ConfigFromIni

Configuration helper classes and methods.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss