1 // Copyright 2018 Dolphin Emulator Project 2 // Licensed under GPLv2+ 3 // Refer to the license.txt file included. 4 #pragma once 5 6 #include <functional> 7 #include <string> 8 9 #include "Common/Analytics.h" 10 11 namespace Common 12 { 13 void AndroidSetReportHandler(std::function<void(std::string, std::string)> function); 14 15 class AndroidAnalyticsBackend : public AnalyticsReportingBackend 16 { 17 public: 18 explicit AndroidAnalyticsBackend(const std::string endpoint); 19 20 ~AndroidAnalyticsBackend() override; 21 void Send(std::string report) override; 22 23 private: 24 std::string m_endpoint; 25 }; 26 } // namespace Common 27