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

37 行
1.2 KiB

using UnityEngine;
using System.Collections.Generic;
using HuaweiService;
namespace HuaweiService.Auth
{
public class ProfileRequest_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.auth.ProfileRequest";
}
public class ProfileRequest :HmsClass<ProfileRequest_Data>
{
public ProfileRequest (): base() { }
public string getDisplayName() {
return Call<string>("getDisplayName");
}
public string getPhotoUrl() {
return Call<string>("getPhotoUrl");
}
public class Builder_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.auth.ProfileRequest$Builder";
}
public class Builder :HmsClass<Builder_Data>
{
public Builder (): base() { }
public Builder setDisplayName(string arg0) {
return Call<Builder>("setDisplayName", arg0);
}
public Builder setPhotoUrl(string arg0) {
return Call<Builder>("setPhotoUrl", arg0);
}
public ProfileRequest build() {
return Call<ProfileRequest>("build");
}
}
}
}