Go to file
xiaoyi cd6563f2df feat(*): update upm dependencies 2021-04-07 18:56:41 +08:00
Documentations feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Editor feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Plugins feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +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 feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +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 upm dependencies 2021-04-07 18:56:41 +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();