Package-level declarations

Types

Link copied to clipboard
open class AppPurchase
Link copied to clipboard
interface BillingListener

Interface for handling billing-related events.

Link copied to clipboard
data class BillingPeriod(val years: Int, val months: Int, val weeks: Int, val days: Int, val iso: String)

Parsed view over an ISO-8601 duration string as used by Google Play billing periods ("P7D", "P1W", "P1M", "P3M", "P6M", "P1Y").

Link copied to clipboard

Receives the outcome of a Play in-app messaging surface shown by AppPurchase.showInAppMessages.

Link copied to clipboard
data class OfferInfo(val productId: String, val basePlanId: String?, val offerId: String?, val offerToken: String, val offerTags: List<String>, val pricingPhases: List<ProductDetails.PricingPhase>, val isFreeTrial: Boolean, val trialPeriod: String?, val trialPhase: ProductDetails.PricingPhase?, val hasIntroPrice: Boolean, val introPrice: String?, val introPriceMicros: Long, val introPeriod: String?, val introCycleCount: Int, val introPhase: ProductDetails.PricingPhase?, val basePrice: String, val basePriceMicros: Long, val billingPeriod: String?, val currencyCode: String, val basePhase: ProductDetails.PricingPhase?, val installmentPlanDetails: ProductDetails.InstallmentPlanDetails? = null)

Typed view over a subscription ProductDetails.SubscriptionOfferDetails, surfacing the trial / intro / base pricing phases as flat fields for easy UI binding.

Link copied to clipboard
data class OneTimeOfferInfo(val productId: String, val offerId: String?, val purchaseOptionId: String?, val offerToken: String, val offerTags: List<String>, val formattedPrice: String, val priceMicros: Long, val currencyCode: String, val fullPriceMicros: Long?, val discountPercentage: Int?, val discountAmountMicros: Long?, val formattedDiscountAmount: String?, val discountCurrencyCode: String?, val rentalPeriod: String?, val rentalExpirationPeriod: String?, val preorderReleaseTimeMillis: Long, val preorderPresaleEndTimeMillis: Long, val maximumQuantity: Int, val remainingQuantity: Int, val validFromMillis: Long, val validUntilMillis: Long, val raw: ProductDetails.OneTimePurchaseOfferDetails)

Typed view over a one-time product offer (ProductDetails.OneTimePurchaseOfferDetails), surfacing the Play Billing 9 features — discounts, rentals, pre-orders and limited quantity — as flat fields for easy UI binding.

Link copied to clipboard

Receives the outcome of each product-details query.

Link copied to clipboard
class PurchaseDevBottomSheet(typeIap: Int, productDetails: ProductDetails?, context: Context, purchaseListener: PurchaseListener?) : BottomSheetDialog
Link copied to clipboard
Listener interface for purchase history events.
Link copied to clipboard

Represents an item that can be purchased, including its ID, trial ID, type, and purchase category.

Link copied to clipboard
Link copied to clipboard
open class PurchaseResult
Represents the result of a purchase transaction with comprehensive details.
Link copied to clipboard
Callback interface for server-side subscription verification.
Link copied to clipboard