本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

39 行
1.3 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.CloudDB
{
public class Transaction_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.Transaction";
}
public class Transaction :HmsClass<Transaction_Data>
{
public Transaction (): base() { }
public List executeQuery(CloudDBZoneQuery cloudDBZoneQuery) {
return Call<List>("executeQuery", cloudDBZoneQuery);
}
public Transaction executeUpsert(List objectList) {
return Call<Transaction>("executeUpsert", objectList);
}
public Transaction executeDelete(List objectList) {
return Call<Transaction>("executeDelete", objectList);
}
public class FunctionData : IHmsBaseListener
{
public string name => "com.huawei.agconnect.cloud.database.Transaction$Function";
public string buildName => "";
}
public class Function : HmsListener<FunctionData>
{
public virtual bool apply(Transaction transaction) {
return Call<bool>("apply", transaction);
}
public bool apply(AndroidJavaObject transaction){
return apply(HmsUtil.GetHmsBase<Transaction>(transaction));
}
}
}
}