-
- All Implemented Interfaces:
-
kotlinx.coroutines.CoroutineScope
public final class HuaweiStore extends Store
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHuaweiStore.Companionpublic classHuaweiStore.PurchaseStatepublic final classHuaweiStore.HuaweiAccountNotLogged
-
Field Summary
Fields Modifier and Type Field Description private StoreTypetypeprivate PLYHuaweiActivityactivityprivate final StringpromoCodeUrlprivate final StringversionCodeprivate BooleanisAvailableprivate final CoroutineContextcoroutineContextprivate Store.PurchasecurrentPurchaseprivate BooleanisSandboxprivate final StateFlow<State>stateprivate final LiveData<State>stateLiveData
-
Constructor Summary
Constructors Constructor Description HuaweiStore()
-
Method Summary
Modifier and Type Method Description StoreTypegetType()UnitsetType(StoreType type)final PLYHuaweiActivitygetActivity()final UnitsetActivity(PLYHuaweiActivity activity)StringgetPromoCodeUrl()StringgetVersionCode()BooleangetIsAvailable()UnitsetIsAvailable(Boolean isAvailable)CoroutineContextgetCoroutineContext()final Store.PurchasegetCurrentPurchase()final UnitsetCurrentPurchase(Store.Purchase currentPurchase)final BooleangetIsSandbox()final UnitsetIsSandbox(Boolean isSandbox)final StateFlow<State>getState()final LiveData<State>getStateLiveData()Unitconnect(Function2<Boolean, PLYError, Unit> callback)Unitdisconnect()BooleanisReady()BooleancheckAvailability()VoidstoreCountry()Collection<StoreProduct>getProducts(DistributionType type, List<PLYPlan> plans)<ERROR CLASS>getHistory(DistributionType type)Collection<PLYPlan>getPurchases()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)final UnitonPurchaseStateChanged(HuaweiStore.PurchaseState state)final UnitonActivityReady(PLYHuaweiActivity activity, Integer requestCode)Booleanconsume(PLYPurchaseReceipt purchaseReceipt)Unitcancel(Activity activity, PLYPlan plan)-
-
Method Detail
-
getType
StoreType getType()
-
getActivity
final PLYHuaweiActivity getActivity()
-
setActivity
final Unit setActivity(PLYHuaweiActivity activity)
-
getPromoCodeUrl
String getPromoCodeUrl()
-
getVersionCode
String getVersionCode()
-
getIsAvailable
Boolean getIsAvailable()
-
setIsAvailable
Unit setIsAvailable(Boolean isAvailable)
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
getCurrentPurchase
final Store.Purchase getCurrentPurchase()
-
setCurrentPurchase
final Unit setCurrentPurchase(Store.Purchase currentPurchase)
-
getIsSandbox
final Boolean getIsSandbox()
-
setIsSandbox
final Unit setIsSandbox(Boolean isSandbox)
-
getState
final StateFlow<State> getState()
-
getStateLiveData
final LiveData<State> getStateLiveData()
-
disconnect
Unit disconnect()
-
checkAvailability
Boolean checkAvailability()
-
storeCountry
Void storeCountry()
-
getProducts
Collection<StoreProduct> getProducts(DistributionType type, List<PLYPlan> plans)
-
getHistory
<ERROR CLASS> getHistory(DistributionType type)
-
getPurchases
Collection<PLYPlan> getPurchases()
-
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)
-
onPurchaseStateChanged
final Unit onPurchaseStateChanged(HuaweiStore.PurchaseState state)
-
onActivityReady
final Unit onActivityReady(PLYHuaweiActivity activity, Integer requestCode)
-
-
-
-