Go to file
zhangwenyan 8c3e976649 feat(*):style tapDB scene 2021-04-28 15:05:23 +08:00
Documentation feat(README): update README 2021-04-12 11:24:42 +08:00
Editor Merge branch 'hot_fix_2.0.0' 2021-04-09 18:50:36 +08:00
Plugins feat(*):style tapDB scene 2021-04-28 15:05:23 +08:00
CHANGELOG.md feat(2.1.x): update 2.1.x feature and braking changes 2021-04-25 13:55:07 +08:00
CHANGELOG.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Documentation.meta feat(tapdb): add dynamicProperties interface 2021-04-14 13:46:30 +08:00
Editor.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Plugins.meta mod:replace all framework 2021-04-08 10:11:23 +08:00
README.md feat(README): update README 2021-04-12 11:24:42 +08:00
README.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
package.json feat(*): update dll version 2021-04-09 17:39:08 +08:00
package.json.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00

README.md

使用 TapTap.Bootstrap

使用前提

使用 TapTap.Bootstrap 前提是必须依赖以下库:

命名空间

using TapTap.Bootstrap;

接口描述

初始化

TapConfig config = new TapConfig(string clientId,bool isCN);
TapBootstrap.Init(config);

登陆

TapBootstrap.Login(LoginType loginType, string[] permissions);

设置语言

TapBootstrap.SetPreferLanguage(TapLanguage tapLanguage);

绑定TapTap账号

TapBootstrap.Bind(LoginType loginType, string[] permissions);

注册用户状态回调

TapBootstrap.RegisterUserStatusChangedListener(ITapUserStatusChangedListener listener); 

注册登陆回调

TapBootstrap.RegisterLoginResultListener(ITapLoginResultListener listener);

获取用户信息

TapBootstrap.GetUser(Action<TapUser,TapError> action);

获取详细用户信息

TapBootstrap.GetDetailUser(Action<TapUserDetail, TapError> action);

获取AccessToken

TapBootstrap.GetDetailUser(Action<TapUserDetail, TapError> action);

登出

TapBootstrap.Logout();

打开用户中心

TapBootstrap.OpenUserCenter();