您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
42 行
992 B
42 行
992 B
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HuaweiService.ads
|
|
{
|
|
public class AdListenerData : IHmsBaseListener
|
|
{
|
|
public string name => "com.unity.hms.listener.IAdListener";
|
|
public string buildName => "BuildAdListener";
|
|
}
|
|
public class AdListener : HmsListener<AdListenerData>
|
|
{
|
|
|
|
public virtual void onAdClicked() {
|
|
Call("onAdClicked");
|
|
}
|
|
|
|
public virtual void onAdClosed() {
|
|
Call("onAdClosed");
|
|
}
|
|
|
|
public virtual void onAdFailed(int arg0) {
|
|
Call("onAdFailed", arg0);
|
|
}
|
|
|
|
public virtual void onAdImpression() {
|
|
Call("onAdImpression");
|
|
}
|
|
|
|
public virtual void onAdLeave() {
|
|
Call("onAdLeave");
|
|
}
|
|
|
|
public virtual void onAdLoaded() {
|
|
Call("onAdLoaded");
|
|
}
|
|
|
|
public virtual void onAdOpened() {
|
|
Call("onAdOpened");
|
|
}
|
|
}
|
|
}
|