Skip to content

ECS Framework API v2.1.50


ECS Framework API / PlatformDetector

Class: PlatformDetector

Defined in: Platform/PlatformDetector.ts:7

平台检测器 自动检测当前运行环境并返回对应的平台信息

Constructors

Constructor

new PlatformDetector(): PlatformDetector

Returns

PlatformDetector

Methods

detect()

static detect(): PlatformDetectionResult

Defined in: Platform/PlatformDetector.ts:11

检测当前平台

Returns

PlatformDetectionResult


getDetailedInfo()

static getDetailedInfo(): Record<string, any>

Defined in: Platform/PlatformDetector.ts:194

获取详细的环境信息(用于调试)

Returns

Record<string, any>

Released under the MIT License.