StoreManager

class StoreManager(val purchaseController: InternalPurchaseController, val billing: Billing, receiptManagerFactory: () -> ReceiptManager, track: suspend (InternalSuperwallEvent) -> Unit = { Superwall.instance.track(it) }) : ProductsFetcher, StoreKit(source)

Constructors

Link copied to clipboard
constructor(purchaseController: InternalPurchaseController, billing: Billing, receiptManagerFactory: () -> ReceiptManager, track: suspend (InternalSuperwallEvent) -> Unit = { Superwall.instance.track(it) })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun cacheProduct(fullProductIdentifier: String, storeProduct: StoreProduct)
Link copied to clipboard
open suspend override fun consume(purchaseToken: String): Result<String>
Link copied to clipboard
open override fun getProductFromCache(productId: String): StoreProduct?
Link copied to clipboard
open suspend override fun getProducts(substituteProducts: Map<String, StoreProduct>?, paywall: Paywall, request: PaywallRequest?): GetProductsResponse
Link copied to clipboard
open suspend override fun getProductsWithoutPaywall(productIds: List<String>, substituteProducts: Map<String, StoreProduct>?): Map<String, StoreProduct>
Link copied to clipboard
open suspend override fun getProductVariables(paywall: Paywall, request: PaywallRequest): List<ProductVariable>
Link copied to clipboard
open override fun hasCached(productId: String): Boolean
Link copied to clipboard
open suspend override fun loadPurchasedProducts(serverEntitlementsByProductId: Map<String, Set<Entitlement>>)
Link copied to clipboard
open suspend override fun products(identifiers: Set<String>): Set<StoreProduct>
Link copied to clipboard
open override fun refreshReceipt()