android - 应用内结算的 getBuyIntent() 和 launchPurchaseFlow() 方法有什么区别?

标签 android google-play in-app-purchase google-play-services in-app-billing

This one说我将使用 getBuyIntent() 开始购买流程,而 another one告诉我使用 launchPurchaseFlow()。

我应该使用哪个?

最佳答案

要在应用计费中使用,您必须使用 IInAppBillingService .第一个链接是关于此服务 API 的。第二个链接(培训部分)解释了带有 IInAppBillingService 包装器的示例,因此 underneath它还使用 getBuyIntent()

关于android - 应用内结算的 getBuyIntent() 和 launchPurchaseFlow() 方法有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39672385/

相关文章:

android - 发现多个文件的操作系统独立路径为 'lib/armeabi/libBugly.so'

android - 如何在后台使用 Flutter Method Channel(应用最小化/关闭)

android - Android IAP在测试过程中找不到项目

android - Google Play商店API-是否存在?

ios - IAP - 可以获取免费订阅产品但不能获取付费产品

android - 删除 InApp 购买后出现的 "Thank you. Your item will appear shortly."toast

java - Android:无法从 Google Geocoding API 获取位置名称

android - 错误 : should use android:showAsAction when not using support library

android - 将我的 Android 应用发布到 Google Play

android - 如何避免新的应用内购买底部表单将整个应用推高