官方文档入口:http://docs.cocos.com/creator/manual/zh/publish/publish-oppo-instant-games.html
OPPO文档入口:https://cdofs.oppomobile.com/cdo-activity/static/201810/26/quickgame/documentation/#/games/quickgame
其实oppo的sdk是可以完全可以按照oppo的示例demo进行傻瓜式接入的,博主本人也是按照这个demo进行sdk接入的,所以对于这次sdk接入我也进行一次记录,方便自己方便他人学习。
先上代码,可以直接复制到你的项目中使用:
interface IBannerAd {
show: Function
hide: Function
offResize: Function
style: object
onLoad: Function
offLoad: Function
onError: Function
offError: Function
onResize: Function
destroy: Function
}
interface IRewardVideoAd {
load: Function
show: Function
hide: Function
offResize: Function
style: object
onLoad: Function
offLoad: Function
onError: Function
offError: Function
onResize: Function
destroy: Function
onClose: Function
offClose: Function
onShow: Function
offShow: Function
}
export class OPPO_Manager{
private static _instance = new OPPO_Manager()
private constructor() { }
static get instance(): OPPO_Manager {