diff options
| author | zackhow <zackhow@gmail.com> | 2018-08-19 17:38:29 -0400 |
|---|---|---|
| committer | zackhow <zackhow@gmail.com> | 2018-08-23 17:31:17 -0400 |
| commit | 82f82a6b7d727ff3dcc8b4e5a4d7fc9a214a8596 (patch) | |
| tree | ba0620e78bd04bd0a74557ac4f43ef81ed9b5f29 /Source/Core/Common/AndroidAnalytics.h | |
| parent | 8e5c3d5b4eff43b9e830831efc91dccf77f00b66 (diff) | |
Android: Add usage statistics to android.
Added an option in General config to enable/disable usage statistics. Added a popup on first open if
the user would like to engage in reporting. Clicking cancel or out of the box opts out. Only
clicking 'Ok' will enable reporting. Also added a new android specific values to report.
Diffstat (limited to 'Source/Core/Common/AndroidAnalytics.h')
| -rw-r--r-- | Source/Core/Common/AndroidAnalytics.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Core/Common/AndroidAnalytics.h b/Source/Core/Common/AndroidAnalytics.h new file mode 100644 index 0000000000..b96d67cb19 --- /dev/null +++ b/Source/Core/Common/AndroidAnalytics.h @@ -0,0 +1,26 @@ +// Copyright 2018 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. +#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 |
