|
| static CORE_API void | PlatformPreInit () |
| |
| static void | PlatformInit () |
| |
| static CORE_API FDelegateHandle | AddNetworkListener (FOnNetworkConnectionChangedDelegate &&InNewDelegate) |
| |
| static CORE_API bool | RemoveNetworkListener (FDelegateHandle Handle) |
| |
| static void | PlatformHandleSplashScreen (bool ShowSplashScreen=false) |
| |
| static void | PlatformTearDown () |
| |
| static void | SetGracefulTerminationHandler () |
| |
| static void | SetCrashHandler (void(*CrashHandler)(const FGenericCrashContext &Context)) |
| |
| static ECrashHandlingType | GetCrashHandlingType () |
| |
| static ECrashHandlingType | SetCrashHandlingType (ECrashHandlingType Type) |
| |
| static CORE_API FString | GetEnvironmentVariable (const TCHAR *VariableName) |
| |
| static CORE_API void | SetEnvironmentVar (const TCHAR *VariableName, const TCHAR *Value) |
| |
| static FORCEINLINE int32 | GetMaxPathLength () |
| |
| static CORE_API int32 | GetExternalAppMaxPathLength () |
| |
| static CORE_API const TCHAR * | GetPathVarDelimiter () |
| |
| static CORE_API TArray< uint8 > | GetMacAddress () |
| |
| static CORE_API FString | GetMacAddressString () |
| |
| static CORE_API FString | GetHashedMacAddressString () |
| |
| static CORE_API FString | GetDeviceId () |
| |
| static CORE_API FString | GetUniqueAdvertisingId () |
| |
| static CORE_API void | SubmitErrorReport (const TCHAR *InErrorHist, EErrorReportMode::Type InMode) |
| |
| static bool | IsRemoteSession () |
| |
| static FORCEINLINE bool | IsDebuggerPresent () |
| |
| static CORE_API EProcessDiagnosticFlags | GetProcessDiagnostics () |
| |
| static FORCEINLINE void | DebugBreak () |
| |
| static CORE_API FString | GetCPUVendor () |
| |
| static CORE_API uint32 | GetCPUInfo () |
| |
| static CORE_API bool | HasNonoptionalCPUFeatures () |
| |
| static CORE_API bool | NeedsNonoptionalCPUFeaturesCheck () |
| |
| static CORE_API FString | GetHostArchitecture () |
| |
| static CORE_API FString | GetCPUBrand () |
| |
| static CORE_API uint32 | GetCPUModelID () |
| |
| static CORE_API uint32 | GetCPUMicrocodeRevision () |
| |
| static CORE_API FString | GetCPUChipset () |
| |
| static CORE_API FString | GetPrimaryGPUBrand () |
| |
| static CORE_API FString | GetDeviceMakeAndModel () |
| |
| static CORE_API struct FGPUDriverInfo | GetGPUDriverInfo (const FString &DeviceDescription) |
| |
| static CORE_API void | GetOSVersions (FString &out_OSVersionLabel, FString &out_OSSubVersionLabel) |
| |
| static CORE_API FString | GetOSVersion () |
| |
| static CORE_API bool | GetDiskTotalAndFreeSpace (const FString &InPath, uint64 &TotalNumberOfBytes, uint64 &NumberOfFreeBytes) |
| |
| static bool | GetPageFaultStats (FPageFaultStats &OutStats, EPageFaultFlags Flags=EPageFaultFlags::All) |
| |
| static bool | GetBlockingIOStats (FProcessIOStats &OutStats, EInputOutputFlags Flags=EInputOutputFlags::All) |
| |
| static bool | GetContextSwitchStats (FContextSwitchStats &OutStats, EContextSwitchFlags Flags=EContextSwitchFlags::All) |
| |
| static bool | SupportsMessaging () |
| |
| static bool | IsCacheStorageAvailable () |
| |
| static bool | SupportsLocalCaching () |
| |
| static bool | AllowLocalCaching () |
| |
| static bool | SupportsFullCrashDumps () |
| |
| CORE_API static FORCENOINLINE void | MemoryBarrier () |
| |
| static void | SetMemoryWarningHandler (void(*Handler)(const FGenericMemoryWarningContext &Context)) |
| |
| static bool | HasMemoryWarningHandler () |
| |
| static FORCEINLINE uint32 | GetLastError () |
| |
| static void | SetLastError (uint32 ErrorCode) |
| |
| static CORE_API void | RaiseException (uint32 ExceptionCode) |
| |
| static FORCEINLINE void | BeginNamedEventFrame () |
| |
| static FORCEINLINE void | BeginNamedEvent (const struct FColor &Color, const TCHAR *Text) |
| |
| static FORCEINLINE void | BeginNamedEvent (const struct FColor &Color, const ANSICHAR *Text) |
| |
| static FORCEINLINE void | EndNamedEvent () |
| |
| static FORCEINLINE void | CustomNamedStat (const TCHAR *Text, float Value, const TCHAR *Graph, const TCHAR *Unit) |
| |
| static FORCEINLINE void | CustomNamedStat (const ANSICHAR *Text, float Value, const ANSICHAR *Graph, const ANSICHAR *Unit) |
| |
| template<typename CharType > |
| static void | StatNamedEvent (const CharType *Text) |
| |
| static CORE_API void | TickStatNamedEvents () |
| |
| static CORE_API void | LogNameEventStatsInit () |
| |
| static void | BeginEnterBackgroundEvent (const TCHAR *Text) |
| |
| static void | EndEnterBackgroundEvent () |
| |
| static FORCEINLINE void | InitTaggedStorage (uint32 NumTags) |
| |
| static FORCEINLINE void | ShutdownTaggedStorage () |
| |
| static FORCEINLINE void | TagBuffer (const char *Label, uint32 Category, const void *Buffer, size_t BufferSize) |
| |
| static CORE_API bool | SetStoredValues (const FString &InStoreId, const FString &InSectionName, const TMap< FString, FString > &InKeyValues) |
| |
| static CORE_API bool | SetStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, const FString &InValue) |
| |
| static CORE_API bool | GetStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, FString &OutValue) |
| |
| static CORE_API bool | DeleteStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName) |
| |
| static CORE_API bool | DeleteStoredSection (const FString &InStoreId, const FString &InSectionName) |
| |
| static CORE_API void | LowLevelOutputDebugString (const TCHAR *Message) |
| |
| static CORE_API void VARARGS | LowLevelOutputDebugStringf (const TCHAR *Format,...) |
| |
| static CORE_API bool | IsLowLevelOutputDebugStringStructured () |
| |
| static CORE_API void | SetUTF8Output () |
| |
| static CORE_API void | LocalPrint (const TCHAR *Str) |
| |
| static bool | IsLocalPrintThreadSafe () |
| |
| static CORE_API bool | HasSeparateChannelForDebugOutput () |
| |
| static CORE_API void | RequestExit (bool Force, const TCHAR *CallSite=nullptr) |
| |
| static CORE_API void | RequestExitWithStatus (bool Force, uint8 ReturnCode, const TCHAR *CallSite=nullptr) |
| |
| static CORE_API bool | RestartApplication () |
| |
| static CORE_API bool | RestartApplicationWithCmdLine (const char *CmdLine) |
| |
| static CORE_API const TCHAR * | GetSystemErrorMessage (TCHAR *OutBuffer, int32 BufferCount, int32 Error) |
| |
| static CORE_API void | CreateGuid (struct FGuid &Result) |
| |
| static CORE_API EAppReturnType::Type | MessageBoxExt (EAppMsgType::Type MsgType, const TCHAR *Text, const TCHAR *Caption) |
| |
| static bool | CommandLineCommands () |
| |
| static FORCEINLINE bool | Is64bitOperatingSystem () |
| |
| static bool | IsValidAbsolutePathFormat (const FString &Path) |
| |
| static void | NormalizePath (FString &InPath) |
| |
| static void | NormalizePath (FStringBuilderBase &InPath) |
| |
| static CORE_API const TCHAR * | GetDefaultPathSeparator () |
| |
| static CORE_API bool | UseRenderThread () |
| |
| static bool | AllowAudioThread () |
| |
| static CORE_API bool | AllowThreadHeartBeat () |
| |
| static CORE_API int32 | NumberOfCores () |
| |
| static CORE_API const FProcessorGroupDesc & | GetProcessorGroupDesc () |
| |
| static CORE_API int32 | NumberOfCoresIncludingHyperthreads () |
| |
| static CORE_API int32 | NumberOfWorkerThreadsToSpawn () |
| |
| static CORE_API int32 | NumberOfIOWorkerThreadsToSpawn () |
| |
| static struct FAsyncIOSystemBase * | GetPlatformSpecificAsyncIOSystem () |
| |
| static const TCHAR * | GetPlatformFeaturesModuleName () |
| |
| static CORE_API const TCHAR * | RootDir () |
| |
| static CORE_API TArray< FString > | GetAdditionalRootDirectories () |
| |
| static CORE_API void | AddAdditionalRootDirectory (const FString &RootDir) |
| |
| static CORE_API const TCHAR * | EngineDir () |
| |
| static CORE_API const TCHAR * | LaunchDir () |
| |
| static CORE_API void | CacheLaunchDir () |
| |
| static CORE_API const TCHAR * | ProjectDir () |
| |
| static CORE_API bool | GetEngineAndProjectAbsoluteDirsFromExecutable (FString &OutProjectDir, FString &OutEngineDir) |
| |
| static CORE_API FString | CloudDir () |
| |
| static bool | HasProjectPersistentDownloadDir () |
| |
| static CORE_API bool | CheckPersistentDownloadStorageSpaceAvailable (uint64 BytesRequired, bool bAttemptToUseUI) |
| |
| static CORE_API const TCHAR * | GamePersistentDownloadDir () |
| |
| static CORE_API const TCHAR * | GameTemporaryDownloadDir () |
| |
| static CORE_API const TCHAR * | GeneratedConfigDir () |
| |
| static CORE_API const TCHAR * | GetUBTPlatform () |
| |
| static CORE_API const TCHAR * | GetUBTTarget () |
| |
| static CORE_API const TCHAR * | GetUBTArchitecture () |
| |
| static CORE_API void | SetUBTTargetName (const TCHAR *InTargetName) |
| |
| static CORE_API const TCHAR * | GetUBTTargetName () |
| |
| static CORE_API const TCHAR * | GetNullRHIShaderFormat () |
| |
| static CORE_API IPlatformChunkInstall * | GetPlatformChunkInstall () |
| |
| static CORE_API IPlatformCompression * | GetPlatformCompression () |
| |
| static CORE_API IPlatformHostCommunication & | GetPlatformHostCommunication () |
| |
| static bool | OsExecute (const TCHAR *CommandType, const TCHAR *Command, const TCHAR *CommandLine=NULL) |
| |
| static bool | IsPackagedForDistribution () |
| |
| static CORE_API bool | GetSHA256Signature (const void *Data, uint32 ByteSize, FSHA256Signature &OutSignature) |
| |
| static CORE_API FString | GetDefaultLanguage () |
| |
| static CORE_API FString | GetDefaultLocale () |
| |
| static CORE_API FString | GetTimeZoneId () |
| |
| static bool | Exec (class UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Out) |
| |
| static CORE_API FText | GetFileManagerName () |
| |
| static bool | SupportsMultithreadedFileHandles () |
| |
| static void | SetShouldPromptForRemoteDebugging (bool bInShouldPrompt) |
| |
| static void | SetShouldPromptForRemoteDebugOnEnsure (bool bInShouldPrompt) |
| |
| static bool | IsEnsureAllowed () |
| |
| static void | UpdateHotfixableEnsureSettings () |
| |
| static CORE_API void | TickHotfixables () |
| |
| static void | PromptForRemoteDebugging (bool bIsEnsure) |
| |
| static FORCEINLINE void | Prefetch (const void *Ptr) |
| |
| static FORCEINLINE void | Prefetch (const void *Ptr, int32 Offset) |
| |
| static FORCEINLINE void | PrefetchBlock (const void *Ptr) |
| |
| static FORCEINLINE void | PrefetchBlock (const void *Ptr, int32 NumBytes) |
| |
| static CORE_API const TCHAR * | GetDefaultDeviceProfileName () |
| |
| static FORCEINLINE int | GetBatteryLevel () |
| |
| static FORCEINLINE void | SetBrightness (float bBright) |
| |
| static FORCEINLINE float | GetBrightness () |
| |
| static FORCEINLINE bool | SupportsBrightness () |
| |
| static FORCEINLINE bool | IsInLowPowerMode () |
| |
| static CORE_API float | GetDeviceTemperatureLevel () |
| |
| static CORE_API void | SetOverrideProjectDir (const FString &InOverrideDir) |
| |
| static CORE_API void | GetValidTargetPlatforms (TArray< FString > &TargetPlatformNames) |
| |
| static CORE_API FPlatformUserId | GetPlatformUserForUserIndex (int32 LocalUserIndex) |
| |
| static CORE_API int32 | GetUserIndexForPlatformUser (FPlatformUserId PlatformUser) |
| |
| static bool | GetUseVirtualJoysticks () |
| |
| static bool | SupportsTouchInput () |
| |
| static bool | SupportsForceTouchInput () |
| |
| static bool | ShouldDisplayTouchInterfaceOnFakingTouchEvents () |
| |
| static bool | DesktopTouchScreen () |
| |
| static bool | FullscreenSameAsWindowedFullscreen () |
| |
| static bool | GetVolumeButtonsHandledBySystem () |
| |
| static void | SetVolumeButtonsHandledBySystem (bool enabled) |
| |
| static CORE_API TArray< uint8 > | GetSystemFontBytes () |
| |
| static bool | HasActiveWiFiConnection () |
| |
| static CORE_API ENetworkConnectionStatus | GetNetworkConnectionStatus () |
| |
| static CORE_API void | SetNetworkConnectionStatus (ENetworkConnectionStatus NewNetworkConnectionStatus) |
| |
| static ENetworkConnectionType | GetNetworkConnectionType () |
| |
| static void | EnsureNetworkIfNecessary () |
| |
| static bool | HasVariableHardware () |
| |
| static bool | HasPlatformFeature (const TCHAR *FeatureName) |
| |
| static CORE_API bool | IsRunningOnBattery () |
| |
| static CORE_API EDeviceScreenOrientation | GetDeviceOrientation () |
| |
| static CORE_API void | SetDeviceOrientation (EDeviceScreenOrientation NewDeviceOrientation) |
| |
| static CORE_API EDeviceScreenOrientation | GetAllowedDeviceOrientation () |
| |
| static CORE_API void | SetAllowedDeviceOrientation (EDeviceScreenOrientation NewAllowedDeviceOrientation) |
| |
| static CORE_API int32 | GetDeviceVolume () |
| |
| static CORE_API FGuid | GetMachineId () |
| |
| static CORE_API FString | GetLoginId () |
| |
| static CORE_API FString | GetEpicAccountId () |
| |
| static CORE_API FString | GetDeviceTag () |
| |
| static CORE_API FString | GetOperatingSystemId () |
| |
| static CORE_API EConvertibleLaptopMode | GetConvertibleLaptopMode () |
| |
| static CORE_API const TCHAR * | GetEngineMode () |
| |
| static CORE_API TArray< FString > | GetPreferredLanguages () |
| |
| static CORE_API FString | GetLocalCurrencyCode () |
| |
| static CORE_API FString | GetLocalCurrencySymbol () |
| |
| static CORE_API void | RegisterForRemoteNotifications () |
| |
| static CORE_API bool | IsRegisteredForRemoteNotifications () |
| |
| static CORE_API void | UnregisterForRemoteNotifications () |
| |
| static CORE_API FString | GetPendingActivationProtocol () |
| |
| static bool | ShouldDisablePluginAtRuntime (const FString &PluginName) |
| |
| static void | PrepareMobileHaptics (EMobileHapticsType Type) |
| |
| static void | TriggerMobileHaptics () |
| |
| static void | ReleaseMobileHaptics () |
| |
| static void | ShareURL (const FString &URL, const FText &Description, int32 LocationHintX, int32 LocationHintY) |
| |
| static bool | SupportsDeviceCheckToken () |
| |
| static CORE_API bool | RequestDeviceCheckToken (TFunction< void(const TArray< uint8 > &)> QuerySucceededFunc, TFunction< void(const FString &, const FString &)> QueryFailedFunc) |
| |
| static CORE_API FString | LoadTextFileFromPlatformPackage (const FString &RelativePath) |
| |
| static CORE_API bool | FileExistsInPlatformPackage (const FString &RelativePath) |
| |
| static CORE_API void | TearDown () |
| |
| static CORE_API void | ParseChunkIdPakchunkIndexMapping (TArray< FString > ChunkIndexRedirects, TMap< int32, int32 > &OutMapping) |
| |
| static void | PumpMessagesOutsideMainLoop () |
| |
| static void | PumpMessagesForSlowTask () |
| |
| static void | PumpEssentialAppMessages () |
| |
| static void | HidePlatformStartupScreen () |
| |
| static FORCEINLINE bool | UseHDRByDefault () |
| |
| static FORCEINLINE void | ChooseHDRDeviceAndColorGamut (uint32 DeviceId, uint32 DisplayNitLevel, EDisplayOutputFormat &OutputDevice, EDisplayColorGamut &ColorGamut) |
| |
| static FORCEINLINE int32 | GetChunkIDFromPakchunkIndex (int32 PakchunkIndex) |
| |
| static CORE_API FStringView | GetPakFilenamePrefix () |
| |
| static CORE_API int32 | GetPakchunkIndexFromPakFile (FStringView InFilename) |
| |
| static FORCEINLINE bool | Expand16BitIndicesTo32BitOnLoad () |
| |
| static FORCEINLINE void | GetNetworkFileCustomData (TMap< FString, FString > &OutCustomPlatformData) |
| |
| static FORCEINLINE bool | SupportsBackbufferSampling () |
| |
| static int32 | GetMaxRefreshRate () |
| |
| static int32 | GetMaxSupportedRefreshRate () |
| |
| static int32 | GetMaxSyncInterval () |
| |
| static CORE_API const FString * | GetConfigRulesVariable (const FString &Key) |
| |
| static CORE_API const class TMap< FString, FString > & | GetConfigRuleVars () |
| |
| static CORE_API bool | IsPGOEnabled () |
| |
| static CORE_API bool | IsPGICapableBinary () |
| |
| static bool | StartNewPGOCollection (const FString &AbsoluteFileName) |
| |
| static CORE_API bool | IsPGIActive () |
| |
| static CORE_API const FString | VersionCheckPlatformName () |
| |
| static bool | StopPGOCollectionAndCloseFile () |
| |
| static CORE_API void | ShowConsoleWindow () |
| |
| static CORE_API int | GetMobilePropagateAlphaSetting () |
| |
| static bool | IsRunningInCloud () |
| |
| static bool | WasLaunchedStreaming () |
| |
| static void | DisableScreenTimeout () |
| |
| static void | EnableScreenTimeout () |
| |
| static bool | SetupSyscallFilters () |
| |
| static const float | GetVirtualKeyboardInputHeight () |
| |
| static bool | GetPlatformScreenWarnings (TArray< FText > &PlatformScreenWarnings) |
| |
Generic implementation for most platforms
| FString FGenericPlatformMisc::GetDeviceId |
( |
| ) |
|
|
static |
Returns a unique string for device identification. Differs from the deprecated GetUniqueDeviceId in that there is no default implementation (which used unreliable Mac address determiniation). This code is expected to use platform-specific methods to identify the device.
WARNING: Use of this method in your app may imply technical certification requirments for your platform! For instance, consoles often require cert waivers to be in place before calling APIs that can track a device, so be very careful that you are following your platform's protocols for accessing device IDs. See the platform- specific implementations of this method for details on what APIs are used.
If you do not have permission to call this on one or more of your platforms, set GET_DEVICE_ID_UNAVAILABLE=1 in your build step to ensure that any calls that may be made to this API will simply return an empty string.
- Returns
- the unique string generated by this platform for this device, or an empty string if one is not available.