-
- All Implemented Interfaces:
-
io.purchasely.common.PLYCoroutineScope,kotlinx.coroutines.CoroutineScope
public final class GoogleStore extends Store
-
-
Field Summary
Fields Modifier and Type Field Description private StoreTypetypeprivate final StringpromoCodeUrlprivate final StringversionCodeprivate final CoroutineContextcoroutineContextprivate Store.PurchasecurrentPurchaseprivate BooleanisAvailableprivate BooleanisSandboxprivate final CompletableJobjobprivate final StateFlow<State>state
-
Constructor Summary
Constructors Constructor Description GoogleStore()
-
Method Summary
Modifier and Type Method Description StoreTypegetType()UnitsetType(StoreType type)StringgetPromoCodeUrl()StringgetVersionCode()CoroutineContextgetCoroutineContext()final Store.PurchasegetCurrentPurchase()final UnitsetCurrentPurchase(Store.Purchase currentPurchase)BooleangetIsAvailable()UnitsetIsAvailable(Boolean isAvailable)final BooleangetIsSandbox()final UnitsetIsSandbox(Boolean isSandbox)CompletableJobgetJob()final StateFlow<State>getState()Unitconnect(Function2<Boolean, PLYError, Unit> callback)Unitdisconnect()<ERROR CLASS>isReady()BooleancheckAvailability()VoidstoreCountry()Collection<StoreProduct>getProducts(DistributionType type, List<PLYPlan> plans)Collection<PLYPlan>getHistory(DistributionType type)Collection<String>getSubscriptionsPurchasesToken()Collection<String>getNonConsumablesPurchasesToken()UnithandlePendingPurchases()UnitrestorePurchases(String triedToPurchaseProductId, Boolean isSilent)UnitsynchronizePurchases(Boolean auto, Function1<PLYError, Unit> callback)Unitpurchase(Activity activity, PLYPlan plan, PLYProduct product, PLYPromoOffer offer)PLYSubscriptionOffergetSubscriptionOffer(PLYPlan plan, String storeOfferId)Booleanconsume(PLYPurchaseReceipt purchaseReceipt)Unitcancel(Activity activity, PLYPlan plan)-
-
Method Detail
-
getType
StoreType getType()
-
getPromoCodeUrl
String getPromoCodeUrl()
-
getVersionCode
String getVersionCode()
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
getCurrentPurchase
final Store.Purchase getCurrentPurchase()
-
setCurrentPurchase
final Unit setCurrentPurchase(Store.Purchase currentPurchase)
-
getIsAvailable
Boolean getIsAvailable()
-
setIsAvailable
Unit setIsAvailable(Boolean isAvailable)
-
getIsSandbox
final Boolean getIsSandbox()
-
setIsSandbox
final Unit setIsSandbox(Boolean isSandbox)
-
getJob
CompletableJob getJob()
-
getState
final StateFlow<State> getState()
-
disconnect
Unit disconnect()
-
isReady
<ERROR CLASS> isReady()
-
checkAvailability
Boolean checkAvailability()
-
storeCountry
Void storeCountry()
-
getProducts
Collection<StoreProduct> getProducts(DistributionType type, List<PLYPlan> plans)
-
getHistory
Collection<PLYPlan> getHistory(DistributionType type)
-
getSubscriptionsPurchasesToken
Collection<String> getSubscriptionsPurchasesToken()
-
getNonConsumablesPurchasesToken
Collection<String> getNonConsumablesPurchasesToken()
-
handlePendingPurchases
Unit handlePendingPurchases()
-
restorePurchases
Unit restorePurchases(String triedToPurchaseProductId, Boolean isSilent)
-
synchronizePurchases
Unit synchronizePurchases(Boolean auto, Function1<PLYError, Unit> callback)
-
getSubscriptionOffer
PLYSubscriptionOffer getSubscriptionOffer(PLYPlan plan, String storeOfferId)
-
-
-
-