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

79 行
2.7 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.Auth
{
public class AGConnectUser_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.auth.AGConnectUser";
}
public class AGConnectUser :HmsClass<AGConnectUser_Data>
{
public AGConnectUser (): base() { }
public bool isAnonymous() {
return Call<bool>("isAnonymous");
}
public string getUid() {
return Call<string>("getUid");
}
public string getEmail() {
return Call<string>("getEmail");
}
public string getPhone() {
return Call<string>("getPhone");
}
public string getDisplayName() {
return Call<string>("getDisplayName");
}
public string getPhotoUrl() {
return Call<string>("getPhotoUrl");
}
public string getProviderId() {
return Call<string>("getProviderId");
}
public Task getToken(bool arg0) {
return Call<Task>("getToken", arg0);
}
public List getProviderInfo() {
return Call<List>("getProviderInfo");
}
public Task link(Activity arg0, int arg1) {
return Call<Task>("link", arg0, arg1);
}
public Task link(AGConnectAuthCredential arg0) {
return Call<Task>("link", arg0);
}
public Task unlink(int arg0) {
return Call<Task>("unlink", arg0);
}
public Task updateProfile(ProfileRequest arg0) {
return Call<Task>("updateProfile", arg0);
}
public Task updateEmail(string arg0, string arg1) {
return Call<Task>("updateEmail", arg0, arg1);
}
public Task updateEmail(string arg0, string arg1, Locale arg2) {
return Call<Task>("updateEmail", arg0, arg1, arg2);
}
public Task updatePhone(string arg0, string arg1, string arg2) {
return Call<Task>("updatePhone", arg0, arg1, arg2);
}
public Task updatePhone(string arg0, string arg1, string arg2, Locale arg3) {
return Call<Task>("updatePhone", arg0, arg1, arg2, arg3);
}
public Task updatePassword(string arg0, string arg1, int arg2) {
return Call<Task>("updatePassword", arg0, arg1, arg2);
}
public int getEmailVerified() {
return Call<int>("getEmailVerified");
}
public int getPasswordSetted() {
return Call<int>("getPasswordSetted");
}
public Task getUserExtra() {
return Call<Task>("getUserExtra");
}
public Task reauthenticate(AGConnectAuthCredential arg0) {
return Call<Task>("reauthenticate", arg0);
}
}
}