Stay organized with collections
Save and categorize content based on your preferences.
Purchase.PurchasesResult
public
static
class
Purchase.PurchasesResult
extends Object
Result list and response code for BillingClient.queryPurchases(String)
method.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
PurchasesResult
public PurchasesResult (BillingResult mBillingResult,
List<Purchase> purchasesList)
Parameters |
mBillingResult |
BillingResult |
purchasesList |
List |
Public methods
getResponseCode
public int getResponseCode ()
Returns the response code of In-app Billing API calls.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Purchase.PurchasesResult\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nPurchase.PurchasesResult\n========================\n\n\n`\npublic\nstatic\n\n\nclass\nPurchase.PurchasesResult\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | com.android.billingclient.api.Purchase.PurchasesResult |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nResult list and response code for [BillingClient.queryPurchases(String)](/reference/com/android/billingclient/api/BillingClient#queryPurchases(java.lang.String)) method.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[PurchasesResult](/reference/com/android/billingclient/api/Purchase.PurchasesResult#PurchasesResult(com.android.billingclient.api.BillingResult,%20java.util.List\u003ccom.android.billingclient.api.Purchase\u003e))`(`[BillingResult](/reference/com/android/billingclient/api/BillingResult)` mBillingResult, `[List](https://developer.android.com/reference/java/util/List.html)`\u003c`[Purchase](/reference/com/android/billingclient/api/Purchase)`\u003e purchasesList) ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[BillingResult](/reference/com/android/billingclient/api/BillingResult) | ` `[getBillingResult](/reference/com/android/billingclient/api/Purchase.PurchasesResult#getBillingResult())`() ` Returns the [BillingResult](/reference/com/android/billingclient/api/BillingResult) of the operation. |\n| ` `[List](https://developer.android.com/reference/java/util/List.html)`\u003c`[Purchase](/reference/com/android/billingclient/api/Purchase)`\u003e` | ` `[getPurchasesList](/reference/com/android/billingclient/api/Purchase.PurchasesResult#getPurchasesList())`() ` Returns the list of [Purchase](/reference/com/android/billingclient/api/Purchase). |\n| ` int` | ` `[getResponseCode](/reference/com/android/billingclient/api/Purchase.PurchasesResult#getResponseCode())`() ` Returns the response code of In-app Billing API calls. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html) | ` clone() ` | | ` boolean` | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void` | ` finalize() ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors\n-------------------\n\n### PurchasesResult\n\n```\npublic PurchasesResult (BillingResult mBillingResult, \n List\u003cPurchase\u003e purchasesList)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|------------------------|\n| `mBillingResult` | `BillingResult` \u003cbr /\u003e |\n| `purchasesList` | `List` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getBillingResult\n\n```\npublic BillingResult getBillingResult ()\n```\n\nReturns the [BillingResult](/reference/com/android/billingclient/api/BillingResult) of the operation.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------|--------|\n| [BillingResult](/reference/com/android/billingclient/api/BillingResult) | \u003cbr /\u003e |\n\n### getPurchasesList\n\n```\npublic List\u003cPurchase\u003e getPurchasesList ()\n```\n\nReturns the list of [Purchase](/reference/com/android/billingclient/api/Purchase).\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [List](https://developer.android.com/reference/java/util/List.html)`\u003c`[Purchase](/reference/com/android/billingclient/api/Purchase)`\u003e` | \u003cbr /\u003e |\n\n### getResponseCode\n\n```\npublic int getResponseCode ()\n```\n\nReturns the response code of In-app Billing API calls.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | The [BillingClient.BillingResponseCode](/reference/com/android/billingclient/api/BillingClient.BillingResponseCode) corresponding to the result. \u003cbr /\u003e |"]]