Go to file
xiaoyi 2184310813 feat(*): update dll version 2021-04-09 17:39:08 +08:00
Documentations feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Editor Merge branch 'master' into feat/friends 2021-04-07 19:37:47 +08:00
Plugins feat(*): update dll version 2021-04-09 17:39:08 +08:00
CHANGELOG.md feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
CHANGELOG.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Documentations.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +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(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +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

1.命名空间

using TapTap.Bootstrap;

2.接口描述

初始化

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();