繁体   English   中英

如何从BillingClient在Android中返回的响应代码获取描述?

[英]How to get description from the response code returned by BillingClient in Android?

我在Android应用中使用了新的Play Billing Library 1.0。 购买过程完成后,在onPurchasesUpdated ,我从Google Play获得一个intresponseCode 如何在我的应用中以编程方式获取此responseCode的描述?

有没有比使用开关盒和手动键入描述更好的方法? 有没有返回描述的方法?

如何在我的应用中以编程方式获取此responseCode的描述?

responseCode是BillingClient.BillingResponse

  • BILLING_UNAVAILABLE = 3
  • DEVELOPER_ERROR = 5
  • 错误= 6
  • OK = 0
  • ....

查看更多信息

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM