ProductDetails.SubscriptionOfferDetails
public
static
final
class
ProductDetails.SubscriptionOfferDetails
extends Object
java.lang.Object | |
↳ | com.android.billingclient.api.ProductDetails.SubscriptionOfferDetails |
Represents the available purchase plans to buy a subscription product.
Summary
Public methods | |
---|---|
String
|
getBasePlanId()
Returns the base plan id associated with the subscription product. |
String
|
getOfferId()
Returns the offer id associated with the subscription product. |
List<String>
|
getOfferTags()
Returns the offer tags associated with this Subscription Offer. |
String
|
getOfferToken()
Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases. |
ProductDetails.PricingPhases
|
getPricingPhases()
Returns the pricing phases for the subscription product. |
Inherited methods | |
---|---|
Public methods
getBasePlanId
public String getBasePlanId ()
Returns the base plan id associated with the subscription product.
Returns | |
---|---|
String |
getOfferId
public String getOfferId ()
Returns the offer id associated with the subscription product.
Note: This field is only set for a discounted offer. Returns null
for a
regular base plan.
Returns | |
---|---|
String |
getOfferTags
public List<String> getOfferTags ()
Returns the offer tags associated with this Subscription Offer.
Returns | |
---|---|
List<String> |
getOfferToken
public String getOfferToken ()
Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.
Returns | |
---|---|
String |
getPricingPhases
public ProductDetails.PricingPhases getPricingPhases ()
Returns the pricing phases for the subscription product.
Returns | |
---|---|
ProductDetails.PricingPhases |