The Android Developer Challenge is back! Submit your idea before December 2.

ConsumeParams.Builder

public static final class ConsumeParams.Builder
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.ConsumeParams.Builder


Helps construct ConsumeParams that are used to consume a purchase.

Summary

Public methods

ConsumeParams build()

Returns ConsumeParams reference to initiate consume action.

ConsumeParams.Builder setDeveloperPayload(String developerPayload)

Specify developer payload be sent back with the purchase information.

ConsumeParams.Builder setPurchaseToken(String purchaseToken)

Specify the token that identifies the purchase to be consumed.

Inherited methods

From class java.lang.Object

Public methods

build

ConsumeParams build ()

Returns ConsumeParams reference to initiate consume action.

Returns
ConsumeParams

setDeveloperPayload

ConsumeParams.Builder setDeveloperPayload (String developerPayload)

Specify developer payload be sent back with the purchase information.

Optional.

Parameters
developerPayload String

Returns
ConsumeParams.Builder

setPurchaseToken

ConsumeParams.Builder setPurchaseToken (String purchaseToken)

Specify the token that identifies the purchase to be consumed.

Mandatory.

Parameters
purchaseToken String

Returns
ConsumeParams.Builder