@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chiyou/minigame-framework",
3
- "version": "1.2.67",
3
+ "version": "1.2.69",
4
4
  "description": "基于 Cocos Creator 3.x 的小游戏开发框架,支持多平台发布",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -201,7 +201,7 @@ export class AdDefinition {
201
201
  xMargin: 0,
202
202
  yMargin: 0,
203
203
  width: 300,
204
- height: 99.2,
204
+ height: 104.4,
205
205
  scaleRatio: 1,
206
206
  canAutoRefresh: false,
207
207
  refreshInterval: 30,
@@ -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
  }