Go to file
xiaoyi f592c8cdfe feat (bootstrap) : update TapConfig constructor func
docs : update doc
2021-04-25 15:45:36 +08:00
Documentation feat (bootstrap) : update TapConfig constructor func 2021-04-25 15:45:36 +08:00
Editor feat (bootstrap) : update TapConfig constructor func 2021-04-25 15:45:36 +08:00
Plugins feat (bootstrap) : update TapConfig constructor func 2021-04-25 15:45:36 +08:00
CHANGELOG.md feat (bootstrap) : update TapConfig constructor func 2021-04-25 15:45:36 +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 (bootstrap) : update TapConfig constructor func 2021-04-25 15:45:36 +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;

接口描述

初始化

var config = new TapConfig.TapConfigBuilder()
                .ClientID("client_id")
                .ClientSecret("client_secret")
                .RegionType(RegionType.CN)
                .TapDBConfig("channel", "gameVersion")
                .Builder();
                
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);

篝火测试资格

TapBootstrap.GetTestQualification(Action<bool,TapError> action);

获取AccessToken

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

登出

TapBootstrap.Logout();

打开用户中心

TapBootstrap.OpenUserCenter();