이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

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)

This method is deprecated. Developer payload has been deprecated. See https://developer.android.com/google/play/billing/billing_overview for recommended alternatives.

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)

This method is deprecated.
Developer payload has been deprecated. See https://developer.android.com/google/play/billing/billing_overview for recommended alternatives.

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