第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

ConsumeParams

public final class ConsumeParams
extends Object

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


Parameters to consume a purchase. (See consumeAsync(ConsumeParams, ConsumeResponseListener)

Summary

Nested classes

class ConsumeParams.Builder

Helps construct ConsumeParams that are used to consume a purchase. 

Public methods

String getDeveloperPayload()

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

String getPurchaseToken()

Returns token that identifies the purchase to be consumed

static ConsumeParams.Builder newBuilder()

Inherited methods

From class java.lang.Object

Public methods

getDeveloperPayload

String getDeveloperPayload ()

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

Returns developer data associated with the purchase to be consumed.

Returns
String

getPurchaseToken

String getPurchaseToken ()

Returns token that identifies the purchase to be consumed

Returns
String

newBuilder

ConsumeParams.Builder newBuilder ()

Returns
ConsumeParams.Builder