com.taptap.tds.tapdb

3.29.0 • Public • Published

使用前提

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

命名空间

using TapTap.TapDB;

接口描述

初始化

TapDB.Init(string clientId, string channel, string gameVersion, bool isCN);

设置用户

TapDB.SetUser(string userId);

TapDB.SetUser(string userId,string openId,string loginType);

设置姓名

TapDB.SetName(string name);

设置玩家等级

TapDB.SetLevel(int level);

设置服务器

TapDB.SetServer(string server);

充值成功

TapDB.OnCharge(string orderId, string productId, long amount, string currencyType, string payment);

自定义事件

TapDB.TrackEvent(string eventName,string jsonProperties);

注册静态事件

TapDB.RegisterStaticProperties(string jsonProperties);

取消静态事件

TapDB.UnregisterStaticProperty(string propertKey);

清除静态事件

TapDB.ClearStaticProperties();

注册动态事件

TapDB.RegisterDynamicProperties(IDynamicProperties properties);

设备初始化

TapDB.DeviceInitialize(string properties);

设备更新

TapDB.DeviceUpdate(string properties);

用户初始化

TapDB.UserInitialize(string properties);

用户更新

TapDB.UserUpdate(string properties);

添加用户

TapDB.UserAdd(string properties);

清除用户

TapDB.ClearUser();

iOS 独占方法

开启 IDFA

TapDB.AdvertiserIDCollectionEnabled(bool enable);

Readme

Keywords

none

Package Sidebar

Install

npm i com.taptap.tds.tapdb

Weekly Downloads

80

Version

3.29.0

License

MIT

Unpacked Size

1.85 MB

Total Files

127

Last publish

Collaborators

  • yuzhenyuxd