lightbulb_outline Please take our October 2018 developer survey. Start survey

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