ECS Framework API / PlatformDetector
Class: PlatformDetector
Defined in: packages/core/src/Platform/PlatformDetector.ts:7
平台检测器 自动检测当前运行环境并返回对应的平台信息
Constructors
Constructor
new PlatformDetector():
PlatformDetector
Returns
PlatformDetector
Methods
detect()
staticdetect():PlatformDetectionResult
Defined in: packages/core/src/Platform/PlatformDetector.ts:11
检测当前平台
Returns
getDetailedInfo()
staticgetDetailedInfo():Record<string,any>
Defined in: packages/core/src/Platform/PlatformDetector.ts:194
获取详细的环境信息(用于调试)
Returns
Record<string, any>