StoreProduct

interface StoreProduct

Represents an in-app product's or subscription's listing details.

Functions

Link copied to clipboard
abstract fun copyWithOfferingId(offeringId: String): StoreProduct

For internal RevenueCat use.

Properties

Link copied to clipboard
abstract 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
abstract val description: String

The description of the product.

Link copied to clipboard
abstract val id: String

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

Link copied to clipboard
abstract val period: Period?

Subscription period.

Link copied to clipboard
abstract val presentedOfferingIdentifier: String?

The offering ID this StoreProduct was returned from.

Link copied to clipboard
abstract val price: Price

Price information for a non-subscription product. Base plan price for a Google subscription. Term price for an Amazon subscription. For Google subscriptions, use SubscriptionOption's pricing phases for offer pricing.

Link copied to clipboard
abstract val purchasingData: PurchasingData

Contains only data that is required to make the purchase.

Link copied to clipboard
abstract val subscriptionOptions: SubscriptionOptions?

Contains all SubscriptionOptions. Null for Amazon or for INAPP products.

Link copied to clipboard
abstract val title: String

Title of the product.

Link copied to clipboard
abstract val type: ProductType

Type of product. One of ProductType.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
val StoreProduct.googleProduct: GoogleStoreProduct?

StoreProduct object containing Google-specific fields: productIdbasePlanIdproductDetails

Sources

Link copied to clipboard