本参考文档包含 ProductDetails 类的详情和相应公共方法。
包含应用内产品/订阅的详情。
public class ProductDetails extends Object
java.lang.Object
↳ gg.now.billingclient.api.ProductDetails
| 方法 | 用法 | 描述 |
|---|---|---|
| getPricingPhase() | PricingPhase getPricingPhase() |
返回定价阶段。 |
| getDescription() | string getDescription() |
返回产品描述。 |
| setDescription() | void setDescription(String description)) |
设置产品描述。 |
| setPricingPhase() | void setPricingPhase(PricingPhase pricingPhase) |
代表用户的定价阶段,描述他们如何付款。 |
| getName() | String getName() |
返回产品名称。 |
| setName() | void setName(String name) |
设置产品名称。 |
| getOneTimePurchaseOfferDetails() | OneTimePurchaseOfferDetails getOneTimePurchaseOfferDetails() |
返回一次性购买的优惠详情。 |
| setOneTimePurchaseOfferDetails() | void setOneTimePurchaseOfferDetails(OneTimePurchaseOfferDetails oneTimePurchaseOfferDetails) |
设置一次性购买的优惠详情。 |
| getTitle() | String getTitle() |
返回产品标题。 |
| setTitle() | void setTitle(String title) |
设置产品标题。 |
| getProductId() | String getProductId() |
返回产品关联的产品ID。 |
| setProductId() | void setProductId(String productId) |
设置产品的产品ID。 |
| getProductType() | String getProductType() |
返回产品类型。 |
| setProductType() | void setProductType(String productType) |
设置产品的类型。 |
| 类 | 描述 |
|---|---|
| ProductDetails.PricingPhase | 描述用户的定价阶段以及他们在某一时间点如何付款。 |
| ProductDetails.SubscriptionOfferDetails | 描述购买一次性购买产品的优惠详情。 |
| ProductDetails.PricingPhases | 通过优惠购买物品的定价阶段。定价阶段(Pricing phases)包含按时间排序的定价阶段列表(list of PricingPhase)。 |