-
- 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>state
-
Constructor Summary
Constructors Constructor Description HuaweiStore()
-
Method Summary
-
-
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()
-
disconnect
Unit disconnect()
-
checkAvailability
Boolean checkAvailability()
-
storeCountry
Void storeCountry()
-
getProducts
Collection<StoreProduct> getProducts(DistributionType type, List<PLYPlan> plans)
-
getHistory
<ERROR CLASS> 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)
-
onPurchaseStateChanged
final Unit onPurchaseStateChanged(HuaweiStore.PurchaseState state)
-
onActivityReady
final Unit onActivityReady(PLYHuaweiActivity activity, Integer requestCode)
-
-
-
-