Files
UnrealEngineUWP/Engine/Source/Developer/Android/AndroidDeviceDetection/Public/Interfaces/IAndroidDeviceDetection.h
Robert Jones b5a273a278 SDK path editing in editor.
- Added class to hold values (AndroidSDKSettings)
- Added code to Android editor module to setup the values on load
- Changed device detection so that the thread is always started and the SDK path can be changed on the fly
- Changed Platform Target Management Module so that a single platform can be checked via UBT
- Settings can now be sourced from an ini file via temp direct reading code (auto seralisation is disabled until later changes are made)
-- Settings currently not exposed in editor

- Added Mac Environment var setting support

Unreleated
- Envars can now be passed down to process start points in tools

#codereview michael.trepka

[CL 2412194 by Robert Jones in Main branch]
2015-01-20 10:05:42 -05:00

61 lines
1.6 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
IAndroidDeviceDetection.h: Declares the IAndroidDeviceDetection interface.
=============================================================================*/
#pragma once
struct FAndroidDeviceInfo
{
// Device serial number, used to route ADB commands to a specific device
FString SerialNumber;
// Device model name
FString Model;
// Device name
FString DeviceName;
// User-visible version of android installed (ro.build.version.release)
FString HumanAndroidVersion;
// Android SDK version supported by the device (ro.build.version.sdk - note: deprecated in 4 according to docs, but version 4 devices return an empty string when querying the 'replacement' SDK_INT)
int32 SDKVersion;
// List of supported OpenGL extensions (retrieved via SurfaceFlinger)
FString GLESExtensions;
// Supported GLES version (ro.opengles.version)
int32 GLESVersion;
// Is the device authorized for USB communication? If not, then none of the other properties besides the serial number will be valid
bool bUnauthorizedDevice;
FAndroidDeviceInfo()
: SDKVersion(INDEX_NONE)
, GLESVersion(INDEX_NONE)
, bUnauthorizedDevice(false)
{
}
};
/**
* Interface for AndroidDeviceDetection module.
*/
class IAndroidDeviceDetection
{
public:
virtual const TMap<FString,FAndroidDeviceInfo>& GetDeviceMap() = 0;
virtual FCriticalSection* GetDeviceMapLock() = 0;
virtual void UpdateADBPath() = 0;
protected:
/**
* Virtual destructor
*/
virtual ~IAndroidDeviceDetection() { }
};