Google 致力于为黑人社区推动种族平等。查看具体举措

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 a consume action.

ConsumeParams.Builder setPurchaseToken(String purchaseToken)

Specifies 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 a consume action.

Returns
ConsumeParams

setPurchaseToken

ConsumeParams.Builder setPurchaseToken (String purchaseToken)

Specifies the token that identifies the purchase to be consumed.

Mandatory.

Parameters
purchaseToken String

Returns
ConsumeParams.Builder