2018-08-19 21:38:29 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-08-19 21:38:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/Analytics.h"
|
|
|
|
|
|
|
|
namespace Common
|
|
|
|
{
|
|
|
|
void AndroidSetReportHandler(std::function<void(std::string, std::string)> function);
|
|
|
|
|
|
|
|
class AndroidAnalyticsBackend : public AnalyticsReportingBackend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit AndroidAnalyticsBackend(const std::string endpoint);
|
|
|
|
|
|
|
|
~AndroidAnalyticsBackend() override;
|
|
|
|
void Send(std::string report) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string m_endpoint;
|
|
|
|
};
|
|
|
|
} // namespace Common
|