Package-level declarations

Functions

Link copied to clipboard
fun List<ProductDetails>.getInAppPurchases(): List<ProductDetails>

Filters out in app purchases (BillingClient with type BillingClient.ProductType.INAPP)

Link copied to clipboard
fun List<ProductDetails>.getSubscriptions(): List<ProductDetails>

Filters out subscriptions (BillingClient with type BillingClient.ProductType.SUBS)

Link copied to clipboard
fun Context.initPayment(apiKey: String, isDebug: Boolean, subscriptionName: String)

Author: @Jeluchu

Link copied to clipboard
fun ProductDetails.isInAppPurchase(): Boolean

Determine if type is in app purchase (BillingClient.ProductType.INAPP)

Link copied to clipboard
fun Purchase.isPurchased(): Boolean

Determine if purchaseState is purchased (Purchase.PurchaseState.PURCHASED)

Link copied to clipboard
fun ProductDetails.isSubscription(): Boolean

Determine if type is a subscription (BillingClient.SkuType.SUBS)