Play Billing Subscription Status Provider
Default implementation using Google Play Billing. Kept for its public signature; it converts each Play purchase to the neutral form and runs the SDK's own status logic.
Functions
Link copied to clipboard
Gets the offer type (trial, promotional, etc.) for a purchase.
Link copied to clipboard
open suspend override fun getSubscriptionState(purchase: Purchase, product: StoreProduct?): LatestSubscriptionState
A purchase returned by queryPurchases is entitled now, so PURCHASED means SUBSCRIBED. Play Billing has no client-side expiry, grace or hold signal, so we don't try to derive one from purchaseTime (which stays at the original purchase across renewals). When there's no current purchase at all, see ReceiptManager.lastSubscriptionProperties.
Link copied to clipboard
Gets whether the subscription will auto-renew.
Link copied to clipboard
Determines if a purchase is currently active.