BillingResult

public final class BillingResult


Params containing the response code and the debug message from In-app Billing API response.

Summary

Nested types

Helps to construct BillingResult that are used to return response from In-app Billing API.

Public constructors

Public methods

String

Debug message returned in In-app Billing API calls.

int

An optional sub response code returned in PurchasesUpdatedListener.onPurchasesUpdated.

int

Response code returned in In-app Billing API calls.

static BillingResult.Builder

Constructs a new BillingResult.Builder instance.

String

Public constructors

BillingResult

public BillingResult()

Public methods

getDebugMessage

public String getDebugMessage()

Debug message returned in In-app Billing API calls.

getOnPurchasesUpdatedSubResponseCode

public int getOnPurchasesUpdatedSubResponseCode()

An optional sub response code returned in PurchasesUpdatedListener.onPurchasesUpdated.

Returns
int

The OnPurchasesUpdatedSubResponseCode corresponding to the result.

getResponseCode

public int getResponseCode()

Response code returned in In-app Billing API calls.

Returns
int

The BillingResponseCode corresponding to the result.

newBuilder

public static BillingResult.Builder newBuilder()

Constructs a new BillingResult.Builder instance.

toString

public String toString()