Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.taptap.tds.dlc

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.taptap.tds.dlc

TapTap Develop Service

  • 3.29.3
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

TapTap.License

使用前提

使用TapTap.License的前提是必须添加以下依赖库:

接口描述

命名空间

using TapTap.License;

付费认证

1.设置授权回调
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码
TapLicense.SetLicencesCallback(ITapLicenseCallback callback);

public interface ITapLicenseCallback
{
    // 授权成功回调
    void OnLicenseSuccess();
}
2. 检查付费授权
TapLicense.Check();

TapLicense DLC 查询和购买

1.DLC 回调设置
public interface ITapDLCCallback
{
     void OnQueryCallBack(int code, Dictionary<string, object> queryList);
    
     void OnOrderCallBack(string sku, int status);
}

TapLicense.SetDLCCallback(ITapDLCCallback callback);
2. DLC 查询

购买前必须先查询 DLC 当前状态(支持单个查询和多个查询)

TapLicense.QueryDLC(string[] appId);
3.DLC 购买

当 DLC 查询过且未购买时

TapLicense.PurchaseDLC(string appId);

FAQs

Package last updated on 20 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc