From a4607385fd604e328c332e925d4ba0124743f4c5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Perrier Date: Sat, 2 Jan 2021 12:53:20 +0100 Subject: [PATCH] Adding GetBatteryInfo() to PlatformBase. --- Source/Engine/Platform/Base/PlatformBase.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Engine/Platform/Base/PlatformBase.h b/Source/Engine/Platform/Base/PlatformBase.h index f0a2baf43..86e760b3c 100644 --- a/Source/Engine/Platform/Base/PlatformBase.h +++ b/Source/Engine/Platform/Base/PlatformBase.h @@ -11,6 +11,7 @@ struct CPUInfo; struct MemoryStats; struct ProcessMemoryStats; struct CreateWindowSettings; +struct BatteryInfo; // ReSharper disable CppFunctionIsNotImplemented @@ -548,6 +549,11 @@ public: /// static void SetHighDpiAwarenessEnabled(bool enable); + /// + /// Gets the battery information. + /// + API_PROPERTY() static BatteryInfo GetBatteryInfo(); + /// /// Gets the screen DPI setting. ///