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

BillingResult.Builder

public static class BillingResult.Builder
extends Object

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


Helps to construct BillingResult that are used to return response from IAB api.

Summary

Public methods

BillingResult build()

Returns BillingResult reference.

BillingResult.Builder setDebugMessage(String debugMessage)
BillingResult.Builder setResponseCode(int responseCode)

Inherited methods

From class java.lang.Object

Public methods

build

BillingResult build ()

Returns BillingResult reference.

Returns
BillingResult

setDebugMessage

BillingResult.Builder setDebugMessage (String debugMessage)

Parameters
debugMessage String

Returns
BillingResult.Builder

setResponseCode

BillingResult.Builder setResponseCode (int responseCode)

Parameters
responseCode int

Returns
BillingResult.Builder