Purchase.PurchasesResult

public static class Purchase.PurchasesResult
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.Purchase.PurchasesResult


Result list and response code for BillingClient.queryPurchases(String) method.

Public constructors

PurchasesResult(BillingResult mBillingResult, List<Purchase> purchasesList)

Public methods

BillingResult getBillingResult()

Returns the BillingResult of the operation.

List<Purchase> getPurchasesList()

Returns the list of Purchase.

int getResponseCode()

Returns the response code of In-app Billing API calls.

Inherited methods

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

getBillingResult

public BillingResult getBillingResult ()

Returns the BillingResult of the operation.

Returns
BillingResult

getPurchasesList

public List<Purchase> getPurchasesList ()

Returns the list of Purchase.

Returns
List<Purchase>

getResponseCode

public int getResponseCode ()

Returns the response code of In-app Billing API calls.

Returns
int The BillingClient.BillingResponseCode corresponding to the result.

Updated May 14, 2024

Google Play's billing system is a service that enables you to sell digital products and content in your Android app.

Updated Jan 9, 2025

Google Play's billing system is a service that enables you to sell digital products and content in your Android app.

Updated Nov 21, 2024