UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AndroidPlatformMisc.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4/*=============================================================================================
5 AndroidMisc.h: Android platform misc functions
6==============================================================================================*/
7
8#pragma once
9#include "CoreTypes.h"
12
13template <typename FuncType>
15
16
17#define PLATFORM_BREAK() raise(SIGTRAP)
18
19#define UE_DEBUG_BREAK_IMPL() PLATFORM_BREAK()
20
21#define ANDROID_HAS_RTSIGNALS PLATFORM_USED_NDK_VERSION_INTEGER >= 21
22
23#ifndef ANDROID_PROFILING_ENABLED
24#define ANDROID_PROFILING_ENABLED !(UE_BUILD_SHIPPING)
25#endif
26
27enum class ECrashContextType;
28
33{
34 static CORE_API void RequestExit( bool Force, const TCHAR* CallSite = nullptr);
35 static CORE_API bool RestartApplication();
36 static CORE_API void LocalPrint(const TCHAR *Message);
37 static bool IsLocalPrintThreadSafe() { return true; }
38 static CORE_API void PlatformPreInit();
39 static CORE_API void PlatformInit();
40 static CORE_API void PlatformTearDown();
42 static EDeviceScreenOrientation GetDeviceOrientation() { return DeviceOrientation; }
43 UE_DEPRECATED(5.1, "SetDeviceOrientation is deprecated. Use SetAllowedDeviceOrientation instead.")
46
47 // Change this to an Enum with Always allow, allow and deny
50
55
56 UE_DEPRECATED(4.21, "void FPlatformMisc::GetEnvironmentVariable(Name, Result, Length) is deprecated. Use FString FPlatformMisc::GetEnvironmentVariable(Name) instead.")
58
59 static CORE_API FString GetEnvironmentVariable(const TCHAR* VariableName);
63 static CORE_API bool HasPlatformFeature(const TCHAR* FeatureName);
65 static CORE_API bool SetStoredValue(const FString& InStoreId, const FString& InSectionName, const FString& InKeyName, const FString& InValue);
66 static CORE_API bool GetStoredValue(const FString& InStoreId, const FString& InSectionName, const FString& InKeyName, FString& OutValue);
67 static CORE_API bool DeleteStoredValue(const FString& InStoreId, const FString& InSectionName, const FString& InKeyName);
68 static CORE_API bool DeleteStoredSection(const FString& InStoreId, const FString& InSectionName);
69
70public:
71
73
84
98
102 static CORE_API bool SupportsLocalCaching();
103 static CORE_API void CreateGuid(struct FGuid& Result);
105 // NOTE: THIS FUNCTION IS DEFINED IN ANDROIDOPENGL.CPP
106 static CORE_API void GetValidTargetPlatforms(class TArray<class FString>& TargetPlatformNames);
107 static CORE_API bool GetUseVirtualJoysticks();
108 static CORE_API bool SupportsTouchInput();
109 static const TCHAR* GetDefaultDeviceProfileName();
111 static CORE_API void SetVolumeButtonsHandledBySystem(bool enabled);
112 // Returns current volume, 0-15
113 static CORE_API int GetVolumeState(double* OutTimeOfChangeInSec = nullptr);
114
116
117#if USE_ANDROID_FILE
119 static CORE_API FString GetLoginId();
120#endif
121#if USE_ANDROID_JNI
122 static CORE_API FString GetDeviceId();
123 static CORE_API FString GetUniqueAdvertisingId();
124#endif
125 static CORE_API FString GetCPUVendor();
126 static CORE_API FString GetCPUBrand();
127 static CORE_API FString GetCPUChipset();
128 static CORE_API FString GetPrimaryGPUBrand();
129 static CORE_API void GetOSVersions(FString& out_OSVersionLabel, FString& out_OSSubVersionLabel);
131
141 {
143 int Level; // in range [0,100]
144 float Temperature; // in degrees of Celsius
145 };
146
148 static CORE_API int GetBatteryLevel();
149 static CORE_API bool IsRunningOnBattery();
150 static CORE_API bool IsInLowPowerMode();
151 static CORE_API float GetDeviceTemperatureLevel();
152 static CORE_API bool AreHeadPhonesPluggedIn();
154#if USE_ANDROID_JNI
155 static CORE_API bool HasActiveWiFiConnection();
156#endif
157
161
162 static CORE_API void HandleNewIntentUri(const FString& IntentUri);
163 static CORE_API FString GetPendingActivationProtocol();
164
167
169
171 static CORE_API void TriggerMobileHaptics();
172 static CORE_API void ReleaseMobileHaptics();
173 static CORE_API void ShareURL(const FString& URL, const FText& Description, int32 LocationHintX, int32 LocationHintY);
174
175 static CORE_API FString LoadTextFileFromPlatformPackage(const FString& RelativePath);
176 static CORE_API bool FileExistsInPlatformPackage(const FString& RelativePath);
177
178 // ANDROID ONLY:
179 static CORE_API void SetVersionInfo(FString AndroidVersion, int32 InTargetSDKVersion, FString DeviceMake, FString DeviceModel, FString DeviceBuildNumber, FString OSLanguage, FString ProductName);
180 static CORE_API const FString GetAndroidVersion();
183 static CORE_API const FString GetDeviceMake();
184 static CORE_API const FString GetDeviceModel();
185 static CORE_API const FString GetOSLanguage();
186 static CORE_API const FString GetProductName(); // returns the product name, if available. e.g. 'Galaxy Tab S8' or empty string.
187 static CORE_API const FString GetDeviceBuildNumber();
188 static CORE_API const FString GetProjectVersion();
189 static CORE_API FString GetDefaultLocale();
190 static CORE_API FString GetGPUFamily();
191 static CORE_API FString GetGLVersion();
195#if USE_ANDROID_JNI
196 static CORE_API int GetAndroidBuildVersion();
197#endif
199 static CORE_API void SetForceUnsupported(bool bInOverride);
200
202
203 /* HasVulkanDriverSupport
204 * @return true if this Android device supports a Vulkan API Unreal could use
205 */
206 static CORE_API bool HasVulkanDriverSupport();
207
208 /* IsVulkanAvailable
209 * @return true if there is driver support, we have an RHI, we are packaged with Vulkan support,
210 * and not we are not forcing GLES with a command line switch
211 */
212 static CORE_API bool IsVulkanAvailable();
214
215 /* ShouldUseVulkan
216 * @return true if Vulkan is available, and not disabled by device profile cvar
217 */
218 static CORE_API bool ShouldUseVulkan();
219 static CORE_API bool ShouldUseDesktopVulkan();
220 static CORE_API FString GetVulkanVersion();
221 static CORE_API FString GetVKQualityRecommendation();
222 static CORE_API FString GetVulkanDeviceNameString();
223
231 static CORE_API FString GetOSVersion();
232 static bool GetOverrideResolution(int32 &ResX, int32& ResY) { return false; }
236 static CORE_API void TriggerCrashHandler(ECrashContextType InType, const TCHAR* InErrorMessage, const TCHAR* OverrideCallstack = nullptr);
237
238 // To help track down issues with failing crash handler.
239 static CORE_API FString GetFatalSignalMessage(int Signal, siginfo* Info);
240 static CORE_API void OverrideFatalSignalHandler(void (*FatalSignalHandlerOverrideFunc)(int Signal, struct siginfo* Info, void* Context, uint32 CrashingThreadId));
241 // To help track down issues with failing crash handler.
242
243 static CORE_API bool IsInSignalHandler();
244
245#if !UE_BUILD_SHIPPING
246 static CORE_API bool IsDebuggerPresent();
247#endif
248
250 {
252 }
253
254 // If this true the RHI will not be blocked while the app is in the background. Instead the RHI will detach the window and any further draw operations will be made to an offscreen surface.
255 // false, standard blocking background behavior will be used...
256 static CORE_API bool UseNewWindowBehavior();
257
258#if STATS || ENABLE_STATNAMEDEVENTS
260 static CORE_API void BeginNamedEvent(const struct FColor& Color, const TCHAR* Text);
261 static CORE_API void BeginNamedEvent(const struct FColor& Color, const ANSICHAR* Text);
262 static CORE_API void EndNamedEvent();
263#endif
264
265#if (STATS || ENABLE_STATNAMEDEVENTS)
267#endif
268
269 // run time compatibility information
270 static CORE_API FString AndroidVersion; // version of android we are running eg "4.0.4"
271 static CORE_API int32 AndroidMajorVersion; // integer major version of Android we are running, eg 10
272 static CORE_API int32 TargetSDKVersion; // Target SDK version, eg 29.
273 static CORE_API FString DeviceMake; // make of the device we are running on eg. "samsung"
274 static CORE_API FString DeviceModel; // model of the device we are running on eg "SAMSUNG-SGH-I437"
275 static CORE_API FString DeviceBuildNumber; // platform image build number of device "R16NW.G960NKSU1ARD6"
276 static CORE_API FString OSLanguage; // language code the device is set to
277 static CORE_API FString ProductName; // Product name, if available. e.g. 'Galaxy Tab S8' or empty string.
278
279 // Build version of Android, i.e. API level.
281
282 // Key/Value pair variables from the optional configuration.txt
284
286
288
290 {
294 };
295
297
298 // Returns CPU temperature read from one of the configurable CPU sensors via android.CPUThermalSensorFilePath CVar or AndroidEngine.ini, [ThermalSensors] section.
299 // Doesn't guarantee to work on all devices. Some devices require root access rights to read sensors information, in that case 0.0 will be returned
300 static CORE_API float GetCPUTemperature();
301
302 static CORE_API void UpdateDeviceOrientation();
303
305
306 // Window access is locked by the game thread before preinit and unlocked here after RHIInit
308
310
311 static CORE_API bool SetNativeDisplayRefreshRate(int32 RefreshRate);
312
314
319
324
326
327 static CORE_API void SetMemoryWarningHandler(void (*Handler)(const FGenericMemoryWarningContext& Context));
328 static CORE_API bool HasMemoryWarningHandler();
329
330 // Android specific requesting of exit, *ONLY* use this function in signal handling code. Otherwise normal RequestExit functions
331 static CORE_API void NonReentrantRequestExit();
332
333 // Register/Get thread names for Android specific threads
334 static CORE_API void RegisterThreadName(const char* Name, uint32 ThreadId);
335 static CORE_API const char* GetThreadName(uint32 ThreadId);
336
337 static CORE_API void ShowConsoleWindow();
338
341
343
344private:
345 static CORE_API const ANSICHAR* CodeToString(int Signal, int si_code);
346 static CORE_API EDeviceScreenOrientation DeviceOrientation;
347
348#if USE_ANDROID_JNI
350 {
365 };
366
368#endif // USE_ANDROID_JNI
369};
370
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
FAndroidMisc FPlatformMisc
Definition AndroidPlatformMisc.h:371
#define ANDROID_MAX_PATH
Definition AndroidPlatform.h:30
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
#define UE_FORCEINLINE_HINT
Definition Platform.h:723
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECrashContextType
Definition GenericPlatformCrashContext.h:112
EDeviceScreenOrientation
Definition GenericPlatformMisc.h:236
EMobileHapticsType
Definition GenericPlatformMisc.h:357
ENetworkConnectionType
Definition GenericPlatformMisc.h:383
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition IDelegateInstance.h:14
Definition Text.h:385
Definition GenericPlatformChunkInstall.h:129
Definition Array.h:670
Definition DelegateSignatureImpl.inl:310
Definition AndroidPlatformMisc.h:14
Definition UnrealString.h.inl:34
Definition AndroidRuntimeSettings.h:19
Definition GenericPlatformMisc.h:301
Definition GenericPlatformMisc.h:320
Definition AndroidPlatformMisc.h:141
int Level
Definition AndroidPlatformMisc.h:143
float Temperature
Definition AndroidPlatformMisc.h:144
FAndroidMisc::EBatteryState State
Definition AndroidPlatformMisc.h:142
Definition AndroidPlatformMisc.h:74
uint64_t UserTime
Definition AndroidPlatformMisc.h:76
uint64_t SystemTime
Definition AndroidPlatformMisc.h:78
uint64_t IRQTime
Definition AndroidPlatformMisc.h:80
uint64_t IOWaitTime
Definition AndroidPlatformMisc.h:82
uint64_t SoftIRQTime
Definition AndroidPlatformMisc.h:79
uint64_t IdleTime
Definition AndroidPlatformMisc.h:81
uint64_t NiceTime
Definition AndroidPlatformMisc.h:77
uint64_t TotalTime
Definition AndroidPlatformMisc.h:75
Definition AndroidPlatformMisc.h:86
int32 Status[MaxSupportedCores]
Definition AndroidPlatformMisc.h:93
static const int32 MaxSupportedCores
Definition AndroidPlatformMisc.h:87
FAndroidMisc::FCPUStatTime CurrentUsage[MaxSupportedCores]
Definition AndroidPlatformMisc.h:91
double AverageUtilization
Definition AndroidPlatformMisc.h:95
FAndroidMisc::FCPUStatTime PreviousUsage[MaxSupportedCores]
Definition AndroidPlatformMisc.h:92
double Utilization[MaxSupportedCores]
Definition AndroidPlatformMisc.h:94
int32 ActivatedCoreCount
Definition AndroidPlatformMisc.h:89
ANSICHAR Name[6]
Definition AndroidPlatformMisc.h:90
int32 CoreCount
Definition AndroidPlatformMisc.h:88
Definition AndroidPlatformMisc.h:33
static CORE_API FString GetGLVersion()
Definition AndroidOpenGLPlatform.cpp:15
static CORE_API void SetOnPauseCallback(OnPauseCallBackType InOnPauseCallback)
Definition AndroidPlatformMisc.cpp:2876
static CORE_API float GetVirtualKeyboardInputHeight()
Definition AndroidPlatformMisc.cpp:3224
static UE_FORCEINLINE_HINT int32 GetMaxPathLength()
Definition AndroidPlatformMisc.h:51
static bool GetOverrideResolution(int32 &ResX, int32 &ResY)
Definition AndroidPlatformMisc.h:232
static CORE_API int32 AndroidMajorVersion
Definition AndroidPlatformMisc.h:271
static CORE_API FString GetVKQualityRecommendation()
Definition AndroidPlatformMisc.cpp:2403
static CORE_API bool SupportsLocalCaching()
Definition AndroidPlatformMisc.cpp:1059
static CORE_API FString GetPendingActivationProtocol()
Definition AndroidPlatformMisc.cpp:1738
static CORE_API int GetMobilePropagateAlphaSetting()
Definition AndroidPlatformMisc.cpp:3011
static CORE_API bool ShouldUseVulkan()
Definition AndroidPlatformMisc.cpp:2322
static CORE_API IPlatformChunkInstall * GetPlatformChunkInstall()
Definition AndroidPlatformMisc.cpp:1769
static CORE_API ENetworkConnectionType GetNetworkConnectionType()
Definition AndroidPlatformMisc.cpp:2812
static CORE_API FString DeviceMake
Definition AndroidPlatformMisc.h:273
static CORE_API FBatteryState GetBatteryState()
Definition AndroidPlatformMisc.cpp:2745
static CORE_API uint32 GetCoreFrequency(int32 CoreIndex, ECoreFrequencyProperty CoreFrequencyProperty)
Definition AndroidPlatformMisc.cpp:2938
static CORE_API FCPUState & GetCPUState()
Definition AndroidPlatformMisc.cpp:985
static CORE_API bool SetStoredValue(const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, const FString &InValue)
Definition AndroidPlatformMisc.cpp:855
static CORE_API const FString GetDeviceMake()
Definition AndroidPlatformMisc.cpp:1903
static CORE_API bool FileExistsInPlatformPackage(const FString &RelativePath)
Definition AndroidPlatformMisc.cpp:1855
static CORE_API bool GetVolumeButtonsHandledBySystem()
Definition AndroidPlatformMisc.cpp:1937
static CORE_API FString DeviceModel
Definition AndroidPlatformMisc.h:274
static CORE_API FString GetPrimaryGPUBrand()
Definition AndroidPlatformMisc.cpp:2897
static CORE_API int GetVolumeState(double *OutTimeOfChangeInSec=nullptr)
Definition AndroidPlatformMisc.cpp:2652
static CORE_API int32 NumberOfCores()
Definition AndroidPlatformMisc.cpp:952
static CORE_API void SetCellularPreference(int32 Value)
Definition AndroidPlatformMisc.cpp:3119
static CORE_API int32 GetTargetSDKVersion()
Definition AndroidPlatformMisc.cpp:1898
TCHAR int32 ResultLength
Definition AndroidPlatformMisc.h:57
static CORE_API bool SupportsTouchInput()
Definition AndroidPlatformMisc.cpp:1653
static CORE_API void SetCrashHandler(void(*CrashHandler)(const FGenericCrashContext &Context))
Definition AndroidPlatformMisc.cpp:1607
static CORE_API FString DeviceBuildNumber
Definition AndroidPlatformMisc.h:275
static void SaveDeviceOrientation(EDeviceScreenOrientation NewDeviceOrentation)
Definition AndroidPlatformMisc.h:304
static CORE_API bool HasMemoryWarningHandler()
Definition AndroidPlatformMisc.cpp:3064
static CORE_API const FString GetDeviceModel()
Definition AndroidPlatformMisc.cpp:1908
static CORE_API bool SetNativeDisplayRefreshRate(int32 RefreshRate)
Definition AndroidPlatformMisc.cpp:3029
static EDeviceScreenOrientation GetDeviceOrientation()
Definition AndroidPlatformMisc.h:42
static CORE_API bool IsSupportedAndroidDevice()
Definition AndroidPlatformMisc.cpp:2009
static CORE_API FString ProductName
Definition AndroidPlatformMisc.h:277
static CORE_API const FString GetProjectVersion()
Definition AndroidPlatformMisc.cpp:1928
static CORE_API bool IsVulkanAvailable()
Definition AndroidPlatformMisc.cpp:2274
static CORE_API void RequestExit(bool Force, const TCHAR *CallSite=nullptr)
Definition AndroidPlatformMisc.cpp:267
static CORE_API bool IsDebuggerPresent()
Definition AndroidPlatformMisc.cpp:2536
TCHAR * Result
Definition AndroidPlatformMisc.h:57
static CORE_API TArray< uint8 > GetSystemFontBytes()
Definition AndroidPlatformMisc.cpp:1757
EBatteryState
Definition AndroidPlatformMisc.h:133
@ BATTERY_STATE_UNKNOWN
Definition AndroidPlatformMisc.h:134
@ BATTERY_STATE_CHARGING
Definition AndroidPlatformMisc.h:135
@ BATTERY_STATE_DISCHARGING
Definition AndroidPlatformMisc.h:136
@ BATTERY_STATE_NOT_CHARGING
Definition AndroidPlatformMisc.h:137
@ BATTERY_STATE_FULL
Definition AndroidPlatformMisc.h:138
static CORE_API const FString GetProductName()
Definition AndroidPlatformMisc.cpp:1923
static CORE_API bool IsRunningOnBattery()
Definition AndroidPlatformMisc.cpp:2760
static CORE_API void PlatformTearDown()
Definition AndroidPlatformMisc.cpp:647
static CORE_API FString GetOSVersion()
Definition AndroidPlatformMisc.cpp:2908
static CORE_API TMap< FString, FString > ConfigRulesVariables
Definition AndroidPlatformMisc.h:283
static CORE_API bool bNeedsRestartAfterPSOPrecompile
Definition AndroidPlatformMisc.h:287
static const TCHAR * GetDefaultDeviceProfileName()
Definition AndroidPlatformMisc.cpp:1673
static CORE_API FString GetGPUFamily()
Definition AndroidOpenGLPlatform.cpp:10
static CORE_API void PlatformHandleSplashScreen(bool ShowSplashScreen)
Definition AndroidPlatformMisc.cpp:695
static CORE_API bool UseNewWindowBehavior()
Definition AndroidPlatformMisc.cpp:2526
static CORE_API bool GetStoredValue(const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, FString &OutValue)
Definition AndroidPlatformMisc.cpp:866
TFunction< void()> OnPauseCallBackType
Definition AndroidPlatformMisc.h:233
static CORE_API FString GetVulkanVersion()
Definition AndroidPlatformMisc.cpp:2391
static CORE_API void GetValidTargetPlatforms(class TArray< class FString > &TargetPlatformNames)
Definition AndroidOpenGLPlatform.cpp:35
static CORE_API const FString GetDeviceBuildNumber()
Definition AndroidPlatformMisc.cpp:1913
static CORE_API FString GetFatalSignalMessage(int Signal, siginfo *Info)
static CORE_API void CreateGuid(struct FGuid &Result)
Definition AndroidPlatformMisc.cpp:1126
static CORE_API void UnlockAndroidWindow()
static CORE_API int32 AndroidBuildVersion
Definition AndroidPlatformMisc.h:280
static CORE_API void PlatformPreInit()
Definition AndroidPlatformMisc.cpp:361
static CORE_API void SetOnReleaseWindowCallback(ReleaseWindowCallbackType InOnReleaseWindowCallback)
Definition AndroidPlatformMisc.cpp:2864
TFunction< void(void *NewNativeHandle)> ReInitWindowCallbackType
Definition AndroidPlatformMisc.h:225
static CORE_API void SetForceUnsupported(bool bInOverride)
Definition AndroidPlatformMisc.cpp:1976
static CORE_API int32 TargetSDKVersion
Definition AndroidPlatformMisc.h:272
static CORE_API void PlatformInit()
Definition AndroidPlatformMisc.cpp:582
static CORE_API bool HasVulkanDriverSupport()
Definition AndroidPlatformMisc.cpp:2185
static CORE_API bool SupportsShaderIOBlocks()
static CORE_API void HandleNewIntentUri(const FString &IntentUri)
Definition AndroidPlatformMisc.cpp:1743
static CORE_API bool IsInLowPowerMode()
Definition AndroidPlatformMisc.cpp:2766
static CORE_API void ShareURL(const FString &URL, const FText &Description, int32 LocationHintX, int32 LocationHintY)
Definition AndroidPlatformMisc.cpp:1823
static CORE_API void SetAllowedDeviceOrientation(EDeviceScreenOrientation NewAllowedDeviceOrientation)
Definition AndroidPlatformMisc.cpp:3135
static CORE_API void UnregisterForRemoteNotifications()
Definition AndroidPlatformMisc.cpp:1689
static CORE_API void SetVolumeButtonsHandledBySystem(bool enabled)
Definition AndroidPlatformMisc.cpp:1942
static CORE_API int32 GetCellularPreference()
Definition AndroidPlatformMisc.cpp:3126
static CORE_API bool GetUseVirtualJoysticks()
Definition AndroidPlatformMisc.cpp:1627
static CORE_API bool AllowThreadHeartBeat()
Definition AndroidPlatformMisc.cpp:2474
static CORE_API void OverrideFatalSignalHandler(void(*FatalSignalHandlerOverrideFunc)(int Signal, struct siginfo *Info, void *Context, uint32 CrashingThreadId))
static CORE_API bool DeleteStoredSection(const FString &InStoreId, const FString &InSectionName)
Definition AndroidPlatformMisc.cpp:894
static CORE_API void SetDeviceOrientation(EDeviceScreenOrientation NewDeviceOrentation)
Definition AndroidPlatformMisc.cpp:3114
static CORE_API bool IsInSignalHandler()
Definition AndroidPlatformMisc.cpp:1557
static CORE_API bool GetDiskTotalAndFreeSpace(const FString &InPath, uint64 &TotalNumberOfBytes, uint64 &NumberOfFreeBytes)
Definition AndroidPlatformMisc.cpp:2913
static CORE_API const TMap< FString, FString > & GetConfigRuleVars()
Definition AndroidPlatformMisc.cpp:2456
static CORE_API float GetDeviceTemperatureLevel()
Definition AndroidPlatformMisc.cpp:2772
static CORE_API FString GetVulkanDeviceNameString()
Definition AndroidPlatformMisc.cpp:2397
static CORE_API FString LoadTextFileFromPlatformPackage(const FString &RelativePath)
Definition AndroidPlatformMisc.cpp:1831
static CORE_API bool SupportsBackbufferSampling()
Definition AndroidPlatformMisc.cpp:3070
static CORE_API const TCHAR * GetSystemErrorMessage(TCHAR *OutBuffer, int32 BufferCount, int32 Error)
Definition AndroidPlatformMisc.cpp:719
static CORE_API float GetCPUTemperature()
Definition AndroidPlatformMisc.cpp:2973
static CORE_API void NonReentrantRequestExit()
Definition AndroidPlatformMisc.cpp:3085
static CORE_API bool SupportsFloatingPointRenderTargets()
Definition AndroidOpenGLPlatform.cpp:20
static CORE_API bool SupportsES30()
Definition AndroidOpenGLPlatform.cpp:30
static CORE_API FString GetCPUChipset()
Definition AndroidPlatformMisc.cpp:2891
static CORE_API OnPauseCallBackType GetOnPauseCallback()
Definition AndroidPlatformMisc.cpp:2871
static CORE_API bool RemoveNetworkListener(FDelegateHandle Handle)
Definition AndroidPlatformMisc.cpp:3208
static CORE_API void TriggerCrashHandler(ECrashContextType InType, const TCHAR *InErrorMessage, const TCHAR *OverrideCallstack=nullptr)
Definition AndroidPlatformMisc.cpp:1566
ECoreFrequencyProperty
Definition AndroidPlatformMisc.h:290
static CORE_API void ReleaseMobileHaptics()
Definition AndroidPlatformMisc.cpp:1818
static CORE_API bool ShouldUseDesktopVulkan()
Definition AndroidPlatformMisc.cpp:2360
static CORE_API bool AreHeadPhonesPluggedIn()
Definition AndroidPlatformMisc.cpp:2777
static CORE_API bool VolumeButtonsHandledBySystem
Definition AndroidPlatformMisc.h:285
static CORE_API FString GetEnvironmentVariable(const TCHAR *VariableName)
Definition AndroidPlatformMisc.cpp:707
static CORE_API bool HasPlatformFeature(const TCHAR *FeatureName)
Definition AndroidPlatformMisc.cpp:831
static CORE_API void SetVersionInfo(FString AndroidVersion, int32 InTargetSDKVersion, FString DeviceMake, FString DeviceModel, FString DeviceBuildNumber, FString OSLanguage, FString ProductName)
Definition AndroidPlatformMisc.cpp:1875
UE_DEPRECATED(4.21, "void FPlatformMisc::GetEnvironmentVariable(Name, Result, Length) is deprecated. Use FString FPlatformMisc::GetEnvironmentVariable(Name) instead.") static CORE_API void GetEnvironmentVariable(const TCHAR *VariableName
static CORE_API bool RestartApplication()
Definition AndroidPlatformMisc.cpp:305
static CORE_API FString GetDefaultLocale()
Definition AndroidPlatformMisc.cpp:1932
static CORE_API bool UseRenderThread()
Definition AndroidPlatformMisc.cpp:905
static CORE_API int32 GetNativeDisplayRefreshRate()
Definition AndroidPlatformMisc.cpp:3039
static CORE_API bool IsExternalMemoryAndroidHardwareBufferExtensionLoaded()
Definition AndroidPlatformMisc.cpp:2427
static CORE_API void ShowConsoleWindow()
Definition AndroidPlatformMisc.cpp:3187
static CORE_API bool SupportsShaderFramebufferFetch()
Definition AndroidOpenGLPlatform.cpp:25
static CORE_API int32 GetAndroidMajorVersion()
Definition AndroidPlatformMisc.cpp:1893
static CORE_API int32 GetDeviceVolume()
Definition AndroidPlatformMisc.cpp:2665
static CORE_API bool IsAllowedRemoteNotifications()
Definition AndroidPlatformMisc.cpp:1696
static CORE_API ReleaseWindowCallbackType GetOnReleaseWindowCallback()
Definition AndroidPlatformMisc.cpp:2859
static CORE_API bool IsDesktopVulkanAvailable()
Definition AndroidPlatformMisc.cpp:2253
static CORE_API void RegisterThreadName(const char *Name, uint32 ThreadId)
Definition AndroidPlatformMisc.cpp:3098
static CORE_API void SetOnReInitWindowCallback(ReInitWindowCallbackType InOnReInitWindowCallback)
Definition AndroidPlatformMisc.cpp:2852
static CORE_API int32 NumberOfCoresIncludingHyperthreads()
Definition AndroidPlatformMisc.cpp:977
static UE_FORCEINLINE_HINT void MemoryBarrier()
Definition AndroidPlatformMisc.h:249
static CORE_API void PrepareMobileHaptics(EMobileHapticsType Type)
Definition AndroidPlatformMisc.cpp:1803
static CORE_API FString GetCPUVendor()
Definition AndroidPlatformMisc.cpp:2881
static CORE_API void UpdateDeviceOrientation()
Definition AndroidPlatformMisc.cpp:668
static CORE_API TArray< int32 > GetSupportedNativeDisplayRefreshRates()
Definition AndroidPlatformMisc.cpp:3017
static CORE_API const char * GetThreadName(uint32 ThreadId)
Definition AndroidPlatformMisc.cpp:3107
static CORE_API void SetMemoryWarningHandler(void(*Handler)(const FGenericMemoryWarningContext &Context))
Definition AndroidPlatformMisc.cpp:3058
static CORE_API FString GetCPUBrand()
Definition AndroidPlatformMisc.cpp:2886
static CORE_API const FString GetOSLanguage()
Definition AndroidPlatformMisc.cpp:1918
static CORE_API FString OSLanguage
Definition AndroidPlatformMisc.h:276
static CORE_API FDelegateHandle AddNetworkListener(FOnNetworkConnectionChangedDelegate &&InNewDelegate)
Definition AndroidPlatformMisc.cpp:3194
static CORE_API bool Expand16BitIndicesTo32BitOnLoad()
Definition AndroidPlatformMisc.cpp:3006
static bool IsLocalPrintThreadSafe()
Definition AndroidPlatformMisc.h:37
static CORE_API EAppReturnType::Type MessageBoxExt(EAppMsgType::Type MsgType, const TCHAR *Text, const TCHAR *Caption)
Definition AndroidPlatformMisc.cpp:739
static CORE_API void TriggerMobileHaptics()
Definition AndroidPlatformMisc.cpp:1807
static CORE_API void GetOSVersions(FString &out_OSVersionLabel, FString &out_OSSubVersionLabel)
Definition AndroidPlatformMisc.cpp:2902
TFunction< void()> ReleaseWindowCallbackType
Definition AndroidPlatformMisc.h:228
static CORE_API void LocalPrint(const TCHAR *Message)
Definition AndroidPlatformMisc.cpp:315
static CORE_API bool DeleteStoredValue(const FString &InStoreId, const FString &InSectionName, const FString &InKeyName)
Definition AndroidPlatformMisc.cpp:880
static CORE_API ReInitWindowCallbackType GetOnReInitWindowCallback()
Definition AndroidPlatformMisc.cpp:2847
static CORE_API FString AndroidVersion
Definition AndroidPlatformMisc.h:270
static CORE_API int GetBatteryLevel()
Definition AndroidPlatformMisc.cpp:2754
static CORE_API void RegisterForRemoteNotifications()
Definition AndroidPlatformMisc.cpp:1682
static CORE_API const FString GetAndroidVersion()
Definition AndroidPlatformMisc.cpp:1888
Definition Color.h:486
Definition GenericPlatformCrashContext.h:395
Definition GenericPlatformCrashContext.h:899
Definition GenericPlatformMisc.h:561
static CORE_API FString GetLoginId()
Definition GenericPlatformMisc.cpp:1914
static CORE_API FString GetUniqueAdvertisingId()
Definition GenericPlatformMisc.cpp:595
static CORE_API const TCHAR * GamePersistentDownloadDir()
Definition GenericPlatformMisc.cpp:1495
static FORCEINLINE void BeginNamedEvent(const struct FColor &Color, const TCHAR *Text)
Definition GenericPlatformMisc.h:920
static FORCEINLINE void EndNamedEvent()
Definition GenericPlatformMisc.h:926
static bool HasActiveWiFiConnection()
Definition GenericPlatformMisc.h:1602
static CORE_API FString GetDeviceId()
Definition GenericPlatformMisc.cpp:589
Definition Guid.h:109