yingchigamesdk-cocos-v3 25.9.3 → 26.1.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.
- package/assets/resources/Privacy/policyUI.prefab +1 -1
- package/assets/resources/Privacy/yinsiUI.prefab +1 -2
- package/dist/index.js +274 -2197
- package/dist/index.js.map +4 -4
- package/dist/ycsdk/nativegame/harmony/HarmonyGame.d.ts +19 -0
- package/dist/ycsdk/nativegame/harmony/HarmonySdk.d.ts +24 -0
- package/dist/ycsdk/nativegame/ios/IOSGame.d.ts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
2
|
+
import { GameInterface } from "../../GameInterface";
|
|
3
|
+
import { BannerType } from "../../minigame/BannerType";
|
|
4
|
+
import { InterstitialType } from "../../minigame/InterstitialType";
|
|
5
|
+
import { PrivacyListener } from "../../minigame/PrivacyListener";
|
|
6
|
+
import { SubornNativeConfig } from "../../minigame/SubornNativeConfig";
|
|
7
|
+
import { SubornVideoConfig } from "../../minigame/SubornVideoConfig";
|
|
8
|
+
export declare class HarmonyGame implements GameInterface {
|
|
9
|
+
init(callBack?: Function, adconfig?: SubornVideoConfig, config?: SubornNativeConfig): void;
|
|
10
|
+
login(callBack?: Function): void;
|
|
11
|
+
showPolicy?(node: Node, callBack: PrivacyListener): void;
|
|
12
|
+
pay?(params: string, callBack: Function): void;
|
|
13
|
+
showBanner(position: BannerType): void;
|
|
14
|
+
hideBanner(): void;
|
|
15
|
+
showInters(type: InterstitialType): void;
|
|
16
|
+
hideInters(type: InterstitialType): void;
|
|
17
|
+
showVideo(callBack: Function): boolean;
|
|
18
|
+
customFunc(methodName: string, params: any[], callBack: Function): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default class HarmonySdk {
|
|
2
|
+
/**
|
|
3
|
+
* 单例对象
|
|
4
|
+
*/
|
|
5
|
+
private static instance;
|
|
6
|
+
/**
|
|
7
|
+
* 私有构造方法 不允许在子类和外部实例化对象(new一下)
|
|
8
|
+
*/
|
|
9
|
+
private constructor();
|
|
10
|
+
/** 使用 🎈:用懒加载形式实现单例模式 */
|
|
11
|
+
static getInstance(): HarmonySdk;
|
|
12
|
+
private VERSION;
|
|
13
|
+
initSDK(params?: object, callback?: (phases: string, res: object) => void): void;
|
|
14
|
+
getIntersFlag(): boolean;
|
|
15
|
+
showInters(params?: object, callback?: (phases: string, res: object) => void): void;
|
|
16
|
+
getVideoFlag(): boolean;
|
|
17
|
+
showVideo(params: object, callback: (phases: string, res: object) => void): void;
|
|
18
|
+
pay(params: object, callback: (phases: string, res: object) => void): void;
|
|
19
|
+
copyText(text: string): void;
|
|
20
|
+
openUrl(url: string): void;
|
|
21
|
+
setRedeemCallback(callback: (res: object) => void): void;
|
|
22
|
+
consumeOrder(orderId: string): void;
|
|
23
|
+
vibrate(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
2
|
+
import { GameInterface } from "../../GameInterface";
|
|
3
|
+
import { BannerType } from "../../minigame/BannerType";
|
|
4
|
+
import { InterstitialType } from "../../minigame/InterstitialType";
|
|
5
|
+
import { PrivacyListener } from "../../minigame/PrivacyListener";
|
|
6
|
+
import { SubornNativeConfig } from "../../minigame/SubornNativeConfig";
|
|
7
|
+
import { SubornVideoConfig } from "../../minigame/SubornVideoConfig";
|
|
8
|
+
export declare class IOSGame implements GameInterface {
|
|
9
|
+
init(callBack?: Function, adconfig?: SubornVideoConfig, config?: SubornNativeConfig): void;
|
|
10
|
+
showPolicy?(node: Node, callBack: PrivacyListener): void;
|
|
11
|
+
login?(callBack?: Function): void;
|
|
12
|
+
pay?(params: string, callBack: Function): void;
|
|
13
|
+
showBanner(position: BannerType): void;
|
|
14
|
+
hideBanner(): void;
|
|
15
|
+
showInters(type: InterstitialType): void;
|
|
16
|
+
hideInters(type: InterstitialType): void;
|
|
17
|
+
showVideo(callBack: Function): boolean;
|
|
18
|
+
customFunc?(methodName: string, params: any[], callBack: Function): void;
|
|
19
|
+
}
|