yingchigamesdk-cocos-v3 25.8.6 → 25.8.26

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.
@@ -1,9 +1,9 @@
1
1
  import { AdType } from "./AdType";
2
2
  export interface AdState {
3
- onLoad(type: AdType): void;
4
- onError(type: AdType, callback?: Function): void;
5
- onShow(type: AdType): void;
6
- onClick(type: AdType): void;
7
- onClose(type: AdType): void;
8
- onReward(): void;
3
+ onLoad?(type: AdType): void;
4
+ onError?(type: AdType, callback?: Function): void;
5
+ onShow?(type: AdType): void;
6
+ onClick?(type: AdType): void;
7
+ onClose?(type: AdType): void;
8
+ onReward?(): void;
9
9
  }
@@ -2,12 +2,13 @@ import { Node } from "cc";
2
2
  import { BannerType } from "./minigame/BannerType";
3
3
  import { InterstitialType } from "./minigame/InterstitialType";
4
4
  import { PrivacyListener } from "./minigame/PrivacyListener";
5
+ import { SubornVideoConfig } from "./minigame/SubornVideoConfig";
5
6
  export interface GameInterface {
6
7
  /**
7
8
  * 初始化,在游戏开始前调用
8
9
  * @param callBack sdk初始化完成回调
9
10
  */
10
- init(callBack?: any): void;
11
+ init(callBack?: Function, adconfig?: SubornVideoConfig): void;
11
12
  showPolicy?(node: Node, callBack: PrivacyListener): void;
12
13
  /**
13
14
  * 登录
@@ -3,4 +3,6 @@ export declare class StorageUtils {
3
3
  static getStringData(key: string): string;
4
4
  static setBooleanData(key: string, value: boolean): void;
5
5
  static getBooleanData(key: string): boolean;
6
+ static setIntData(key: string, value: number): void;
7
+ static getIntgData(key: string): number;
6
8
  }
@@ -6,6 +6,7 @@ import { InterstitialType } from "./minigame/InterstitialType";
6
6
  import { PayParams } from "./minigame/PayParams";
7
7
  import { PrivacyListener } from "./minigame/PrivacyListener";
8
8
  import { Config } from "./SDKConfig";
9
+ import { SubornVideoConfig } from "./minigame/SubornVideoConfig";
9
10
  export declare class YCSDK {
10
11
  private static instance;
11
12
  private platform;
@@ -18,7 +19,7 @@ export declare class YCSDK {
18
19
  private createPlatform;
19
20
  isSupportMiniGame(platform: any): boolean;
20
21
  isRun(platform: any): boolean;
21
- init(config: Config, callBack?: Function): void;
22
+ init(config: Config, callBack?: Function, adconfig?: SubornVideoConfig): void;
22
23
  agreePrivacy(): boolean;
23
24
  showPolicy(node: Node, callBack: PrivacyListener): void;
24
25
  login(callBack?: Function): void;
@@ -3,13 +3,14 @@ import { GameInterface } from "../GameInterface";
3
3
  import { BannerType } from "./BannerType";
4
4
  import { InterstitialType } from "./InterstitialType";
5
5
  import { PrivacyListener } from "./PrivacyListener";
6
+ import { SubornVideoConfig } from "./SubornVideoConfig";
6
7
  export declare class MiniGame implements GameInterface {
7
8
  private channel;
8
9
  private privacyKey;
9
10
  constructor(platform: any);
10
11
  private channelFactory;
11
12
  jsonToKeyValue(json: Record<string, any>): string;
12
- init(callBack?: any): void;
13
+ init(callBack?: Function, adconfig?: SubornVideoConfig): void;
13
14
  setAdStateListener(): void;
14
15
  showPolicy(node: Node, callBack: PrivacyListener): void;
15
16
  login(callBack?: Function): void;
@@ -0,0 +1,5 @@
1
+ export interface SubornVideoConfig {
2
+ switch?: boolean;
3
+ count?: number;
4
+ delay?: number;
5
+ }
@@ -1,4 +1,5 @@
1
1
  import { GameInterface } from "../../GameInterface";
2
+ import { SubornVideoConfig } from "../SubornVideoConfig";
2
3
  import { BannerType } from "../BannerType";
3
4
  import { InterstitialType } from "../InterstitialType";
4
5
  export declare class OppoGame implements GameInterface {
@@ -7,8 +8,8 @@ export declare class OppoGame implements GameInterface {
7
8
  private nativeAd;
8
9
  private count;
9
10
  constructor();
10
- init(callback?: any): void;
11
- config(): void;
11
+ init(callback?: Function, adconfig?: SubornVideoConfig): void;
12
+ config(adconfig: SubornVideoConfig): void;
12
13
  login(callBack?: Function): void;
13
14
  pay(params: string, callBack: Function): void;
14
15
  showBanner(position?: BannerType): void;
@@ -20,6 +21,6 @@ export declare class OppoGame implements GameInterface {
20
21
  hideInters(type: InterstitialType): void;
21
22
  showVideo(callBack: Function): boolean;
22
23
  loadVideoAd(videoCallBack: any): void;
23
- loadVideoAdNoCallBack(): void;
24
+ loadVideoAdNoCallBack(adcount?: number): void;
24
25
  customFunc(methodName: string, params: any[], callBack: Function): void;
25
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yingchigamesdk-cocos-v3",
3
3
  "uuid": "090abbac-29dd-4a45-8ee7-beebe124e0b7",
4
- "version": "25.8.6",
4
+ "version": "25.8.26",
5
5
  "creator": {
6
6
  "version": "3.5.0"
7
7
  },