GoogleStoreProduct

data class GoogleStoreProduct(    val productId: String,     val type: ProductType,     val oneTimeProductPrice: Price?,     val title: String,     val description: String,     val subscriptionPeriod: String?,     val subscriptionOptions: List<GoogleSubscriptionOption>,     val defaultOption: SubscriptionOption?,     val productDetails: ProductDetails) : StoreProduct, Parcelable

Constructors

Link copied to clipboard
fun GoogleStoreProduct(    productId: String,     type: ProductType,     oneTimeProductPrice: Price?,     title: String,     description: String,     subscriptionPeriod: String?,     subscriptionOptions: List<GoogleSubscriptionOption>,     defaultOption: SubscriptionOption?,     productDetails: ProductDetails)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

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
open override val oneTimeProductPrice: Price?

Price information for a non-subscription product. Null for subscriptions. For subscriptions, use SubscriptionOption's pricing phases.

Link copied to clipboard
val productDetails: ProductDetails
Link copied to clipboard
open override val productId: String

The product ID

Link copied to clipboard
open override val subscriptionOptions: List<GoogleSubscriptionOption>

List of SubscriptionOptions. Empty list for INAPP products.

Link copied to clipboard
open override val subscriptionPeriod: String?

Subscription period, specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year.

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.

Sources

Link copied to clipboard