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

76 行
2.4 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.CloudStorage
{
public class FileMetadata_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.storage.core.FileMetadata";
}
public class FileMetadata :HmsClass<FileMetadata_Data>
{
public FileMetadata (): base() { }
public void setSHA256Hash(string arg0) {
Call("setSHA256Hash", arg0);
}
public void setContentType(string arg0) {
Call("setContentType", arg0);
}
public void setCacheControl(string arg0) {
Call("setCacheControl", arg0);
}
public void setContentDisposition(string arg0) {
Call("setContentDisposition", arg0);
}
public void setContentEncoding(string arg0) {
Call("setContentEncoding", arg0);
}
public void setContentLanguage(string arg0) {
Call("setContentLanguage", arg0);
}
public void setCustomMetadata(Map arg0) {
Call("setCustomMetadata", arg0);
}
public StorageReference getStorageReference() {
return Call<StorageReference>("getStorageReference");
}
public string getBucket() {
return Call<string>("getBucket");
}
public string getCTime() {
return Call<string>("getCTime");
}
public string getMTime() {
return Call<string>("getMTime");
}
public string getName() {
return Call<string>("getName");
}
public string getPath() {
return Call<string>("getPath");
}
public Long getSize() {
return Call<Long>("getSize");
}
public string getSHA256Hash() {
return Call<string>("getSHA256Hash");
}
public string getContentType() {
return Call<string>("getContentType");
}
public string getCacheControl() {
return Call<string>("getCacheControl");
}
public string getContentDisposition() {
return Call<string>("getContentDisposition");
}
public string getContentEncoding() {
return Call<string>("getContentEncoding");
}
public string getContentLanguage() {
return Call<string>("getContentLanguage");
}
public Map getCustomMetadata() {
return Call<Map>("getCustomMetadata");
}
}
}