|
| static void | SetRegion (Region region) |
| |
| static void | Init (AntiAddictionConfig config) |
| |
| static void | Init (AntiAddictionConfig config, Action< int, string > callback) |
| |
| static void | SetAntiAddictionCallback (Action< int, string > callback) |
| |
| static void | StartupWithTapTap (string userId) |
| |
| static void | Startup (string userId, bool isTapUser=false) |
| |
| static void | Exit () |
| |
| static void | EnterGame () |
| |
| static void | LeaveGame () |
| |
| static void | CheckPayLimit (long amount, Action< CheckPayResult > handleCheckPayLimit, Action< string > handleCheckPayLimitException) |
| | 在支付前,检查支付结果 More...
|
| |
| static void | SubmitPayResult (long amount, Action handleSubmitPayResult, Action< string > handleSubmitPayResultException) |
| | 提交支付结果 More...
|
| |
| static void | SetTestEnvironment (bool enable) |
| | 设置测试环境,需要在 startup 接口调用前设置 More...
|
| |
| static void | OnInvokeExternalCallback (int code, string msg) |
| |
◆ CheckPayLimit()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.CheckPayLimit |
( |
long |
amount, |
|
|
Action< CheckPayResult > |
handleCheckPayLimit, |
|
|
Action< string > |
handleCheckPayLimitException |
|
) |
| |
|
inlinestatic |
在支付前,检查支付结果
- Parameters
-
| amount | 支付金额,单位:分 |
| handleCheckPayLimit | 检查支付结果的回调 |
| handleCheckPayLimitException | 检查支付碰到问题时的回调 |
◆ EnterGame()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.EnterGame |
( |
| ) |
|
|
inlinestatic |
◆ Exit()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.Exit |
( |
| ) |
|
|
inlinestatic |
◆ Init() [1/2]
◆ Init() [2/2]
| static void TapTap.AntiAddiction.AntiAddictionUIKit.Init |
( |
AntiAddictionConfig |
config, |
|
|
Action< int, string > |
callback |
|
) |
| |
|
inlinestatic |
◆ LeaveGame()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.LeaveGame |
( |
| ) |
|
|
inlinestatic |
◆ OnInvokeExternalCallback()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.OnInvokeExternalCallback |
( |
int |
code, |
|
|
string |
msg |
|
) |
| |
|
inlinestatic |
◆ SetAntiAddictionCallback()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.SetAntiAddictionCallback |
( |
Action< int, string > |
callback | ) |
|
|
inlinestatic |
◆ SetRegion()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.SetRegion |
( |
Region |
region | ) |
|
|
inlinestatic |
◆ SetTestEnvironment()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.SetTestEnvironment |
( |
bool |
enable | ) |
|
|
inlinestatic |
设置测试环境,需要在 startup 接口调用前设置
- Parameters
-
◆ Startup()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.Startup |
( |
string |
userId, |
|
|
bool |
isTapUser = false |
|
) |
| |
|
inlinestatic |
◆ StartupWithTapTap()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.StartupWithTapTap |
( |
string |
userId | ) |
|
|
inlinestatic |
◆ SubmitPayResult()
| static void TapTap.AntiAddiction.AntiAddictionUIKit.SubmitPayResult |
( |
long |
amount, |
|
|
Action |
handleSubmitPayResult, |
|
|
Action< string > |
handleSubmitPayResultException |
|
) |
| |
|
inlinestatic |
提交支付结果
- Parameters
-
| amount | 支付金额,单位:分 |
| handleSubmitPayResult | 提交成功后的回调 |
| handleSubmitPayResultException | 提交失败后的回调 |
◆ AgeRange
| int TapTap.AntiAddiction.AntiAddictionUIKit.AgeRange |
|
staticget |
年龄类型:UNREALNAME = -1;CHILD = 0;TEEN = 8;YOUNG = 16; ADULT = 18; 当游戏旧版本不使用年龄段,新版本使用年龄段,对于老用户仍返回 -1
◆ CurrentToken
| string TapTap.AntiAddiction.AntiAddictionUIKit.CurrentToken |
|
staticget |
◆ ExternalCallback
| Action<int, string>? TapTap.AntiAddiction.AntiAddictionUIKit.ExternalCallback |
|
staticget |
◆ RemainingTime
| int TapTap.AntiAddiction.AntiAddictionUIKit.RemainingTime |
|
staticget |
◆ RemainingTimeInMinutes
| int TapTap.AntiAddiction.AntiAddictionUIKit.RemainingTimeInMinutes |
|
staticget |
The documentation for this class was generated from the following file: