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

64 行
2.3 KiB

using HuaweiService;
namespace HuaweiService.Auth
{
public class LoginManager_Data : IHmsBaseClass{
public string name => "com.hw.unity.Agc.Auth.ThirdPartyLogin.LoginManager";
}
public class LoginManager : HmsClass<LoginManager_Data>
{
public LoginManager (): base() { }
public static LoginManager getInstance()
{
return CallStatic<LoginManager>("getInstance");
}
public void startHWID(OnSuccessListener sucessCallback,OnFailureListener failCallback)
{
Call("startHWID",sucessCallback,failCallback);
}
public void startHWGame(OnSuccessListener sucessCallback,OnFailureListener failCallback)
{
Call("startHWGame",sucessCallback,failCallback);
}
public void startGoogle(string client_id,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startGoogle",client_id,successCallback,failCallback);
}
public void startGooglePlay(string client_id,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startGooglePlay",client_id,successCallback,failCallback);
}
public void startTwitter(string App_id,string App_secret,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startTwitter",App_id,App_secret,successCallback,failCallback);
}
public void startWechatLogin(string APP_ID,string APP_SECRET,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startWechatLogin",APP_ID,APP_SECRET,successCallback,failCallback);
}
public void startQQ(string app_id,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startQQ",app_id,successCallback,failCallback);
}
public void startFacebook(string APP_ID,OnSuccessListener successCallback,OnFailureListener failCallback)
{
Call("startFacebook",APP_ID,successCallback,failCallback);
}
public void startWeibo(string app_id, OnSuccessListener successCallback,
OnFailureListener failCallback)
{
Call("startWeibo",app_id,successCallback,failCallback);
}
}
}