-
- All Implemented Interfaces:
-
kotlinx.coroutines.CoroutineScope
public abstract class Store implements CoroutineScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classStore.Purchase
-
Field Summary
Fields Modifier and Type Field Description private StoreTypetypeprivate final StringpromoCodeUrlprivate final StringversionCodeprivate BooleanisSandboxprivate BooleanisAvailableprivate Store.PurchasecurrentPurchaseprivate final StateFlow<State>stateprivate final LiveData<State>stateLiveDataprivate final CoroutineContextcoroutineContext
-
Constructor Summary
Constructors Constructor Description Store()
-
Method Summary
-
-
Method Detail
-
getPromoCodeUrl
abstract String getPromoCodeUrl()
-
getVersionCode
abstract String getVersionCode()
-
getIsSandbox
final Boolean getIsSandbox()
-
setIsSandbox
final Unit setIsSandbox(Boolean isSandbox)
-
getIsAvailable
Boolean getIsAvailable()
-
setIsAvailable
Unit setIsAvailable(Boolean isAvailable)
-
getCurrentPurchase
final Store.Purchase getCurrentPurchase()
-
setCurrentPurchase
final Unit setCurrentPurchase(Store.Purchase currentPurchase)
-
getStateLiveData
final LiveData<State> getStateLiveData()
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
updateState
final <ERROR CLASS> updateState(State state)
-
purchasedFromStore
final Unit purchasedFromStore(String storeProductId)
-
disconnect
abstract Unit disconnect()
-
checkAvailability
abstract Boolean checkAvailability()
-
getProducts
abstract Collection<StoreProduct> getProducts(DistributionType type, List<PLYPlan> plans)
-
getHistory
abstract Collection<PLYPlan> getHistory(DistributionType type)
-
getPurchases
abstract Collection<PLYPlan> getPurchases()
-
handlePendingPurchases
abstract Unit handlePendingPurchases()
-
restorePurchases
abstract Unit restorePurchases(String triedToPurchaseProductId, Boolean isSilent)
-
synchronizePurchases
abstract Unit synchronizePurchases(Boolean auto, Function1<PLYError, Unit> callback)
-
purchase
Unit purchase(Activity activity, PLYPlan plan, PLYProduct product, PLYPromoOffer offer)
-
consume
abstract Boolean consume(PLYPurchaseReceipt purchaseReceipt)
-
storeCountry
abstract String storeCountry()
-
-
-
-