SDK相关的整理
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { IAdSDK } from "../core/IAdSDK";
|
||||
|
||||
export class WxAdSDK implements IAdSDK {
|
||||
init(cb?: Function): void {
|
||||
console.log("微信广告初始化");
|
||||
cb && cb();
|
||||
}
|
||||
|
||||
// 展示激励视频广告
|
||||
showRewardVideo(cb: (ok: boolean) => void): void {
|
||||
console.log("展示微信激励广告");
|
||||
cb(true);
|
||||
}
|
||||
|
||||
// 展示插屏广告
|
||||
showInterstitial(): void {
|
||||
console.log("展示微信插屏广告");
|
||||
}
|
||||
|
||||
// 展示 Banner 广告
|
||||
showBanner(): void {
|
||||
console.log("展示微信Banner广告");
|
||||
}
|
||||
|
||||
// 隐藏 Banner 广告
|
||||
hideBanner(): void {
|
||||
console.log("隐藏微信Banner广告");
|
||||
}
|
||||
|
||||
// 主动拉起分享
|
||||
showShare(): void {
|
||||
console.log("主动拉起分享");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user