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

60 行
2.3 KiB

using System;
using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.CloudStorage
{
public class AGCStorageManagement_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.storage.core.AGCStorageManagement";
}
public class AGCStorageManagement :HmsClass<AGCStorageManagement_Data>
{
public AGCStorageManagement (): base() { }
public static AGCStorageManagement getInstance(HttpURLConnectionFactory arg0) {
return CallStatic<AGCStorageManagement>("getInstance", arg0);
}
public static AGCStorageManagement getInstance() {
return CallStatic<AGCStorageManagement>("getInstance");
}
public static AGCStorageManagement getInstance(string arg0, HttpURLConnectionFactory arg1) {
return CallStatic<AGCStorageManagement>("getInstance", arg0, arg1);
}
public static AGCStorageManagement getInstance(string arg0) {
return CallStatic<AGCStorageManagement>("getInstance", arg0);
}
public StorageReference getStorageReference() {
return Call<StorageReference>("getStorageReference");
}
public StorageReference getStorageReference(string arg0) {
return Call<StorageReference>("getStorageReference", arg0);
}
[Obsolete("Method is obsolete.", false)]
public StorageReference getReferenceFromUrl(string arg0) {
return Call<StorageReference>("getReferenceFromUrl", arg0);
}
public long getMaxUploadTimeout() {
return Call<long>("getMaxUploadTimeout");
}
public long getMaxDownloadTimeout() {
return Call<long>("getMaxDownloadTimeout");
}
public long getMaxRequestTimeout() {
return Call<long>("getMaxRequestTimeout");
}
public int getRetryTimes() {
return Call<int>("getRetryTimes");
}
public void setMaxUploadTimeout(long arg0) {
Call("setMaxUploadTimeout", arg0);
}
public void setMaxDownloadTimeout(long arg0) {
Call("setMaxDownloadTimeout", arg0);
}
public void setMaxRequestTimeout(long arg0) {
Call("setMaxRequestTimeout", arg0);
}
public void setRetryTimes(int arg0) {
Call("setRetryTimes", arg0);
}
}
}