Files
UnrealEngine/Engine/Plugins/Runtime/Analytics/Adjust/Source/AndroidAdjust/Public/AndroidAdjust.h
2025-05-18 13:04:45 +08:00

47 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Interfaces/IAnalyticsProviderModule.h"
#include "Modules/ModuleManager.h"
class IAnalyticsProvider;
/**
* The public interface to this module
*/
class FAnalyticsAndroidAdjust :
public IAnalyticsProviderModule
{
//--------------------------------------------------------------------------
// Module functionality
//--------------------------------------------------------------------------
public:
/**
* Singleton-like access to this module's interface. This is just for convenience!
* Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.
*
* @return Returns singleton instance, loading the module on demand if needed
*/
static inline FAnalyticsAndroidAdjust& Get()
{
return FModuleManager::LoadModuleChecked< FAnalyticsAndroidAdjust >( "AndroidAdjust" );
}
//--------------------------------------------------------------------------
// provider factory functions
//--------------------------------------------------------------------------
public:
/**
* IAnalyticsProviderModule interface.
* Creates the analytics provider given a configuration delegate.
* The keys required exactly match the field names in the Config object.
*/
virtual TSharedPtr<IAnalyticsProvider> CreateAnalyticsProvider(const FAnalyticsProviderConfigurationDelegate& GetConfigValue) const override;
private:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};