GoogleStoreProduct

Functions

Link copied to clipboard
open override fun copyWithPresentedOfferingContext(presentedOfferingContext: PresentedOfferingContext?): StoreProduct

For internal RevenueCat use.

Link copied to clipboard
open override fun formattedPricePerMonth(locale: Locale): String?

Null for INAPP products. The price of the StoreProduct in the given locale in a monthly recurrence. This means that, for example, if the period is annual, the price will be divided by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. This value will use the basePlan to calculate the value.

Link copied to clipboard
open fun pricePerMonth(locale: Locale = Locale.getDefault()): Price?

Null for INAPP products. The price of the StoreProduct in the given locale in a monthly recurrence. This means that, for example, if the period is annual, the price will be divided by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.

Link copied to clipboard
open fun pricePerWeek(locale: Locale = Locale.getDefault()): Price?

Null for INAPP products. The price of the StoreProduct in the given locale in a weekly recurrence. This means that, for example, if the period is monthly, the price will be divided by 4. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.

Link copied to clipboard
open fun pricePerYear(locale: Locale = Locale.getDefault()): Price?

Null for INAPP products. The price of the StoreProduct in the given locale in a yearly recurrence. This means that, for example, if the period is monthly, the price will be multiplied by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.

Properties

Link copied to clipboard

StoreProduct object containing Amazon-specific fields: originalProductJson freeTrialPeriod iconUrl

Link copied to clipboard

The basePlanId for subscription products. Null for INAPP.

Link copied to clipboard
open override val defaultOption: SubscriptionOption?

The default SubscriptionOption that will be used when purchasing and not specifying a different option. Null for INAPP products.

Link copied to clipboard
open override val description: String

The description of the product.

Link copied to clipboard

StoreProduct object containing Google-specific fields: productId basePlanId productDetails

Link copied to clipboard
open override val id: String

The product ID. INAPP: "" Sub: "productId:basePlanID"

Link copied to clipboard
open override val name: String

Name of the product.

Link copied to clipboard
open override val period: Period?

Subscription period. Null for INAPP products.

Link copied to clipboard

The context from which this product was obtained.

Link copied to clipboard
open override val price: Price

Price information for a non-subscription product. Base plan price for a subscription. Use SubscriptionOption's pricing phases for offer pricing.

Link copied to clipboard
val productDetails: ProductDetails

The ProductDetails object returned from BillingClient that was used to construct this product.

Link copied to clipboard

The productId. For subscriptions, this is the high-level productId set up for a subscription in the Play Console, unique to an entitlement.

Link copied to clipboard
open override val purchasingData: PurchasingData

Contains only data that is required to make the purchase.

Link copied to clipboard

Contains all SubscriptionOptions. Null for INAPP products.

Link copied to clipboard
open override val title: String

Title of the product.

Link copied to clipboard
open override val type: ProductType

Type of product. One of ProductType.