PlayBillingSubscriptionStatusProvider

Default implementation using Google Play Billing.

Constructors

Link copied to clipboard
constructor(billing: Billing)

Functions

Link copied to clipboard
open override fun getOfferType(purchase: Purchase, product: StoreProduct?): LatestPeriodType?

Gets the offer type (trial, promotional, etc.) for a purchase.

Link copied to clipboard
open suspend override fun getSubscriptionState(purchase: Purchase, product: StoreProduct?): LatestSubscriptionState

Gets the subscription state for a purchase.

Link copied to clipboard
open override fun getWillAutoRenew(purchase: Purchase): Boolean

Gets whether the subscription will auto-renew.

Link copied to clipboard
open suspend override fun isActive(purchase: Purchase, product: StoreProduct?): Boolean

Determines if a purchase is currently active.