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

43 行
1.5 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.CloudDB
{
public class AGConnectCloudDB_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB";
}
public class AGConnectCloudDB :HmsClass<AGConnectCloudDB_Data>
{
public AGConnectCloudDB (): base() { }
public static void initialize(Context arg0) {
CallStatic("initialize", arg0);
}
public static AGConnectCloudDB getInstance() {
return CallStatic<AGConnectCloudDB>("getInstance");
}
public void createObjectType(ObjectTypeInfo arg0) {
Call("createObjectType", arg0);
}
public List getCloudDBZoneConfigs() {
return Call<List>("getCloudDBZoneConfigs");
}
public CloudDBZone openCloudDBZone(CloudDBZoneConfig arg0, bool arg1) {
return Call<CloudDBZone>("openCloudDBZone", arg0, arg1);
}
public Task openCloudDBZone2(CloudDBZoneConfig arg0, bool arg1) {
return Call<Task>("openCloudDBZone2", arg0, arg1);
}
public void closeCloudDBZone(CloudDBZone arg0) {
Call("closeCloudDBZone", arg0);
}
public void deleteCloudDBZone(string arg0) {
Call("deleteCloudDBZone", arg0);
}
public void enableNetwork(string arg0) {
Call("enableNetwork", arg0);
}
public void disableNetwork(string arg0) {
Call("disableNetwork", arg0);
}
}
}