BillingResult

public final class BillingResult
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.BillingResult


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

Summary

Nested classes

class BillingResult.Builder

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

Public constructors

BillingResult()

Public methods

String getDebugMessage()

Debug message returned in In-app Billing API calls.

int getResponseCode()

Response code returned in In-app Billing API calls.

static BillingResult.Builder newBuilder()

Constructs a new BillingResult.Builder instance.

String toString()

Inherited methods

Public constructors

BillingResult

public BillingResult ()

Public methods

getDebugMessage

public String getDebugMessage ()

Debug message returned in In-app Billing API calls.

Returns
String

getResponseCode

public int getResponseCode ()

Response code returned in In-app Billing API calls.

Returns
int The BillingClient.BillingResponseCode corresponding to the result.

newBuilder

public static BillingResult.Builder newBuilder ()

Constructs a new BillingResult.Builder instance.

Returns
BillingResult.Builder

toString

public String toString ()

Returns
String