c87e88b91d
# Conflicts: # Assets/LCLibs/Common.dll.meta # Assets/LCLibs/TapBootstrap_2.1.7.aar # Assets/LCLibs/TapBootstrap_2.1.7.aar.meta # Assets/TapTap/Bootstrap/Plugins/Android/libs/TapBootstrap_2.1.6.aar.meta # Assets/TapTap/Bootstrap/Plugins/TapTap.Bootstrap.dll # Assets/TapTap/Bootstrap/Plugins/TapTap.Bootstrap.pdb # Assets/TapTap/Bootstrap/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapBootstrap.h # Assets/TapTap/Bootstrap/Plugins/iOS/TapBootstrapSDK.framework/TapBootstrapSDK # Assets/TapTap/Common/Plugins/Android/libs/TapCommon_2.1.7.aar.meta # Assets/TapTap/Common/Plugins/TapTap.Common.dll # Assets/TapTap/Common/Plugins/TapTap.Common.pdb # Assets/TapTap/Common/Plugins/iOS/TapTap.Common.dll # Assets/TapTap/Common/Plugins/iOS/TapTap.Common.pdb # Assets/TapTap/Friends/Plugins/TapTap.Friends.dll # Assets/TapTap/Friends/Plugins/TapTap.Friends.pdb # Assets/TapTap/License/Plugins/TapTap.License.dll # Assets/TapTap/License/Plugins/TapTap.License.pdb # Assets/TapTap/Login/Editor/TapLoginIOSProcessor.cs # Assets/TapTap/Login/Plugins/TapTap.Login.dll # Assets/TapTap/Login/Plugins/TapTap.Login.pdb # Assets/TapTap/Moment/Plugins/TapTap.Moment.dll # Assets/TapTap/Moment/Plugins/TapTap.Moment.pdb # Assets/TapTap/TapDB/Plugins/TapTap.TapDB.dll # Assets/TapTap/TapDB/Plugins/TapTap.TapDB.pdb # Assets/TapTap/TapDB/Plugins/iOS/TapTap.TapDB.dll # Assets/TapTap/TapDB/Plugins/iOS/TapTap.TapDB.pdb # TapSDK2-Unity.sln |
||
---|---|---|
Documentation | ||
Plugins | ||
CHANGELOG.md | ||
CHANGELOG.md.meta | ||
Documentation.meta | ||
Plugins.meta | ||
README.md | ||
README.md.meta | ||
VERSIONNOTE.md | ||
VERSIONNOTE.md.meta | ||
package.json | ||
package.json.meta |
README.md
使用 TapTap.Bootstrap
使用前提
使用 TapTap.Bootstrap 前提是必须依赖以下库:
命名空间
using TapTap.Bootstrap;
接口描述
1.初始化
TapBootstrap 会根据 TapConfig 中的 TapDBConfig 配置来进行 TapDB 的自动初始化。
开启 TapDB
var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
.TapDBConfig(true,"channel","gameVersion",true)
.Builder();
关闭 TapDB
var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
//# .TapDBConfig(false,null,null,false)
.EnableTapDB(false)
.Builder();
初始化 TapSDK
TapBootstrap.Init(config);
2.登陆
TapBootstrap.Login(LoginType loginType, string[] permissions);
3.设置语言
TapBootstrap.SetPreferLanguage(TapLanguage tapLanguage);
4.绑定TapTap账号(已废弃)
TapBootstrap.Bind(LoginType loginType, string[] permissions);
5.注册用户状态回调
TapBootstrap.RegisterUserStatusChangedListener(ITapUserStatusChangedListener listener);
6.注册登陆回调
TapBootstrap.RegisterLoginResultListener(ITapLoginResultListener listener);
7.获取用户信息
TapBootstrap.GetUser(Action<TapUser,TapError> action);
8.获取详细用户信息
TapBootstrap.GetDetailUser(Action<TapUserDetail, TapError> action);
9.篝火测试资格
TapBootstrap.GetTestQualification(Action<bool,TapError> action);
10.获取AccessToken
TapBootstrap.GetDetailUser(Action<TapUserDetail, TapError> action);
11.登出
TapBootstrap.Logout();