BillingClient.queryPurchases 与 IInAppBillingService.getPurchases 之间有什么区别(用于帐户保留和恢复实施)

Ann*_*son 5 android google-play android-billing google-play-billing

我正在尝试在 2020 年 11 月 1 日之前实现 Google Play 开始要求的帐户保留和恢复功能。在文档中指出

“如果您的应用程序仅依赖于 queryPurchases() 来确定用户是否有权订阅,那么您的应用程序应该自动处理从帐户保留中恢复的订阅。” https://developer.android.com/google/play/billing/subs#account-hold

现在我正在使用IInAppBillingService.getPurchases而不是BillingClient.queryPurchases. 我想知道的是,是否会getPurchases自动处理从帐户保留中恢复的订阅?queryPurchases