@chiyou/minigame-framework 1.2.67 → 1.2.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import { PlatformAdapterVivo } from "../Adapter/PlatformAdapter/PlatformAdapterV
|
|
|
11
11
|
import { PlatformAdapterWeiXin } from "../Adapter/PlatformAdapter/PlatformAdapterWeiXin";
|
|
12
12
|
import { PlatformAdapterXiaoMi } from "../Adapter/PlatformAdapter/PlatformAdapterXiaoMi";
|
|
13
13
|
import { PlatformAdapterZhiFuBao } from "../Adapter/PlatformAdapter/PlatformAdapterZhiFuBao";
|
|
14
|
-
import { AppItem, CopyrightInfo, ICPItem, PlatformID } from "../Definition/SystemDefinition";
|
|
14
|
+
import { AppItem, CopyrightInfo, ICPItem, PlatformID, ScreenInfo } from "../Definition/SystemDefinition";
|
|
15
15
|
import { FwkErrorCode } from "../Definition/FwkErrorDefinition";
|
|
16
16
|
import { LogUtils } from "../Utils/LogUtils";
|
|
17
17
|
import { BaseMgr } from "./BaseMgr";
|
|
@@ -344,4 +344,12 @@ export class SystemMgr extends BaseMgr {
|
|
|
344
344
|
|
|
345
345
|
this.getPlatformAdapter().downloadFile(fileUrl, success, fail);
|
|
346
346
|
}
|
|
347
|
+
|
|
348
|
+
public getScreenInfo(): ScreenInfo {
|
|
349
|
+
if (this.getPlatformAdapter() === null) {
|
|
350
|
+
return null;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
return this.getPlatformAdapter().getScreenInfo();
|
|
354
|
+
}
|
|
347
355
|
}
|