Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

SkuDetailsParams.Builder

public static class SkuDetailsParams.Builder
extends Object

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


Helps to construct SkuDetailsParams that are used to query for SKU details.

Summary

Public methods

SkuDetailsParams build()

Returns SkuDetailsParams reference to initiate a purchase flow.

SkuDetailsParams.Builder setSkusList(List<String> skusList)

Specify the SKUs that are queried for as published in the Google Developer console.

SkuDetailsParams.Builder setType(String type)

Specify the type BillingClient.SkuType of SKUs we are querying for.

Inherited methods

From class java.lang.Object

Public methods

build

SkuDetailsParams build ()

Returns SkuDetailsParams reference to initiate a purchase flow.

Returns
SkuDetailsParams

setSkusList

SkuDetailsParams.Builder setSkusList (List<String> skusList)

Specify the SKUs that are queried for as published in the Google Developer console.

Mandatory:

  • To query for SKU details

Parameters
skusList List

Returns
SkuDetailsParams.Builder

setType

SkuDetailsParams.Builder setType (String type)

Specify the type BillingClient.SkuType of SKUs we are querying for.

Mandatory:

  • To query for SKU details

Parameters
type String

Returns
SkuDetailsParams.Builder