1234567891011121314151617181920 |
- import { Ad } from "./Ad";
- const { ccclass, property } = cc._decorator;
- declare var wx: any;
- @ccclass
- export default class TTSdkComponent extends cc.Component {
- @property({ type: Ad, displayName: "广告模块" })
- ad: Ad = new Ad();
- sendToNative(arg0: string, arg1?: string) {
- jsb.reflection.callStaticMethod("com/yiyuancoder/ttsdk/TTSdkComponent", "sendToNative", "(Ljava/lang/String;Ljava/lang/String;)V", arg0, arg1);
- }
- showToast(content: string) {
- this.sendToNative('showToast', JSON.stringify({ content: content }));
- }
- }
|