您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
45 行
1.4 KiB
45 行
1.4 KiB
using HuaweiService.push;
|
|
using UnityEngine;
|
|
|
|
namespace HuaweiService{
|
|
public class IPushServiceListener:AndroidJavaProxy{
|
|
public IPushServiceListener():base("com.unity.hms.push.IPushService"){}
|
|
|
|
public virtual void onMessageReceived(RemoteMessage arg0) {
|
|
|
|
}
|
|
|
|
public void onMessageReceived(AndroidJavaObject arg0) {
|
|
onMessageReceived(HmsUtil.GetHmsBase<RemoteMessage>(arg0));
|
|
}
|
|
|
|
public virtual void onMessageSent(string arg0) {
|
|
|
|
}
|
|
|
|
public virtual void onNewToken(string arg0) {
|
|
|
|
}
|
|
|
|
public virtual void onSendError(string arg0, BaseException arg1) {
|
|
|
|
}
|
|
public void onSendError(string arg0, AndroidJavaObject arg1) {
|
|
onSendError(arg0,HmsUtil.GetHmsBase<BaseException>(arg1));
|
|
}
|
|
|
|
public virtual void onMessageDelivered(string arg0, BaseException arg1) {
|
|
|
|
}
|
|
public void onMessageDelivered(string arg0, AndroidJavaObject arg1) {
|
|
onSendError(arg0,HmsUtil.GetHmsBase<BaseException>(arg1));
|
|
}
|
|
|
|
public virtual void onTokenError(BaseException arg0) {
|
|
|
|
}
|
|
public void onTokenError(AndroidJavaObject arg0) {
|
|
onTokenError(HmsUtil.GetHmsBase<BaseException>(arg0));
|
|
}
|
|
}
|
|
}
|