A common way of configuring is from Inis, so this class supports that notion directly by providing a configuration class with a method suitable to be used as an FAnalyticsProviderConfigurationDelegate that reads values from the specified ini and section (based on the BuildType). 更多...
#include <Analytics.h>
Public 成员函数 | |
| ConfigFromIni () | |
| Create a config using the default values: IniName - GEngineIni SectionName (Development) = AnalyticsDevelopment SectionName (Debug) = AnalyticsDebug SectionName (Test) = AnalyticsTest SectionName (Release) = Analytics | |
| ConfigFromIni (const FString &InIniName, const FString &InSectionName) | |
| Create a config, specifying the Ini name and a single section name for all build types. | |
| ConfigFromIni (const FString &InIniName, const FString &SectionNameDevelopment, const FString &SectionNameDebug, const FString &SectionNameTest, const FString &SectionNameRelease) | |
| Create a config, specifying the Ini name and the section name for each build type. | |
| ConfigFromIni (EAnalyticsBuildType InBuildType) | |
| Create a config AS IF the BuildType matches the one passed in. | |
| FString | GetValue (const FString &KeyName, bool bIsRequired) const |
| Method that can be bound to an FAnalyticsProviderConfigurationDelegate. | |
| void | SetSectionNameByBuildType (EAnalyticsBuildType InBuildType) |
| Allows setting the INI section name based on the build type passed in. 更多... | |
静态 Public 成员函数 | |
| static FName | GetDefaultProviderModuleName () |
| Reads the ProviderModuleName key from the Analytics section of GEngineIni, which is the default, preferred location to look for the analytics provider name. 更多... | |
Public 属性 | |
| FString | IniName |
| Ini file name to find the config values. | |
| FString | SectionName |
| Section name in the Ini file in which to find the keys. 更多... | |
A common way of configuring is from Inis, so this class supports that notion directly by providing a configuration class with a method suitable to be used as an FAnalyticsProviderConfigurationDelegate that reads values from the specified ini and section (based on the BuildType).
Also provides a default location to store a provider name, accessed via GetDefaultProviderModuleName().
|
inlinestatic |
Reads the ProviderModuleName key from the Analytics section of GEngineIni, which is the default, preferred location to look for the analytics provider name.
This is purely optional, and you can store that information anywhere you want or merely hardcode the provider module.
|
inline |
Allows setting the INI section name based on the build type passed in.
Allows access to the default section values when the application chooses the build type itself.
| FString FAnalytics::ConfigFromIni::SectionName |
Section name in the Ini file in which to find the keys.
The KeyNames should match the field name in the Config object.