UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IDeviceProfileSelectorModule.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 IDeviceProfileSelectorModule.h: Declares the IDeviceProfileSelectorModule interface.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
12
13class UDeviceProfile;
14
19 : public IModuleInterface
20{
21public:
26
32 virtual const FString GetRuntimeDeviceProfileName() = 0;
33
34#if WITH_EDITOR
39 virtual void ExportDeviceParametersToJson(FString& FolderLocation){}
40
45 virtual bool CanExportDeviceParametersToJson() { return false; }
46
53
58 virtual float GetConstrainedAspectRatio() { return ConstrainedAspectRatio; }
59
64 virtual FVector4f GetSafeZones() { return SafeZones; }
65
70 virtual bool CanGetDeviceParametersFromJson() { return false; }
71#endif
72
78 virtual const FString GetDeviceProfileName() { return FString(); }
79
85
86 /*
87 * Find a custom profile selector property value.
88 * @Param PropertyType The information requested
89 * @Param PropertyValueOUT the value of PropertyType
90 * @return Whether the PropertyType was recognized by the profile selector.
91 */
92 virtual bool GetSelectorPropertyValue(const FName& PropertyType, FString& PropertyValueOUT) { PropertyValueOUT.Reset(); return false; }
93
98 {
99 }
100
101protected:
104};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NameTypes.h:617
Definition IDeviceProfileSelectorModule.h:20
virtual const FString GetRuntimeDeviceProfileName()=0
virtual void SetSelectorProperties(const TMap< FName, FString > &SelectorProperties)
Definition IDeviceProfileSelectorModule.h:84
FVector4f SafeZones
Definition IDeviceProfileSelectorModule.h:103
float ConstrainedAspectRatio
Definition IDeviceProfileSelectorModule.h:102
virtual bool GetSelectorPropertyValue(const FName &PropertyType, FString &PropertyValueOUT)
Definition IDeviceProfileSelectorModule.h:92
virtual const FString GetDeviceProfileName()
Definition IDeviceProfileSelectorModule.h:78
virtual ~IDeviceProfileSelectorModule()
Definition IDeviceProfileSelectorModule.h:97
IDeviceProfileSelectorModule()
Definition IDeviceProfileSelectorModule.h:22
Definition ModuleInterface.h:14
Definition UnrealString.h.inl:34
Definition DeviceProfile.h:22