API reference

BillingResult Class

Modifiers: final
Params containing the response code and the debug message from In-app Billing API response.
The equivalent Google Play Billing Library class can be found at the Android developer documentation for BillingResult.

Signature

data class BillingResult(val responseCode: Int, val debugMessage: String)

Constructors

BillingResult ( responseCode , debugMessage )
Signature
constructor(responseCode: Int, debugMessage: String)
Parameters
responseCode: Int
  Response code returned in In-app Billing API calls.
debugMessage: String
  Debug message returned in In-app Billing API calls.

Properties

debugMessage : String
[Get]
Debug message returned in In-app Billing API calls.
Signature
val debugMessage: String
responseCode : Int
[Get]
Response code returned in In-app Billing API calls.
Signature
val responseCode: Int

Companion Object

Companion Object Functions

newBuilder ()
Signature
fun newBuilder(): BillingResult.Builder
Returns
BillingResult.Builder

Inner Class

Builder Class

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

Signature

class Builder

Functions

build ()
Signature
fun build(): BillingResult
setDebugMessage ( debugMessage )
Signature
fun setDebugMessage(debugMessage: String): BillingResult.Builder
Parameters
debugMessage: String
Returns
BillingResult.Builder
setResponseCode ( responseCode )
Signature
fun setResponseCode(responseCode: Int): BillingResult.Builder
Parameters
responseCode: Int
Returns
BillingResult.Builder
Did you find this page helpful?