-
public class PLYStoreManager
-
-
Field Summary
Fields Modifier and Type Field Description public final static PLYStoreManagerINSTANCE
-
Method Summary
-
-
Method Detail
-
verifyPurchase
final <ERROR CLASS> verifyPurchase(PLYPurchaseReceipt receipt, Boolean restore)
-
fillPurchaseReceipt
final PLYPurchaseReceipt fillPurchaseReceipt(PLYProduct product, PLYPurchaseReceipt receipt)
-
syncPurchase
final <ERROR CLASS> syncPurchase(PLYPurchaseReceipt receipt, Boolean auto)
-
getSubscriptions
final Collection<StoreProduct> getSubscriptions(List<PLYPlan> subscriptions)
-
getNonConsumables
final Collection<StoreProduct> getNonConsumables(List<PLYPlan> nonConsumables)
-
getConsumables
final Collection<StoreProduct> getConsumables(List<PLYPlan> consumables)
-
getHistory
final Collection<PLYPlan> getHistory()
-
getSubscriptionsPurchasesToken
final Collection<String> getSubscriptionsPurchasesToken()
-
getNonConsumablesPurchasesToken
final Collection<String> getNonConsumablesPurchasesToken()
-
handlePendingPurchases
final Unit handlePendingPurchases()
-
restorePurchases
final Unit restorePurchases(Boolean isSilent)
-
synchronizePurchases
final Unit synchronizePurchases(Boolean auto, Function1<PLYError, Unit> callback)
-
disconnect
final Unit disconnect()
-
getStoreType
final StoreType getStoreType()
-
getPromoCodeUrl
final String getPromoCodeUrl()
-
getPurchaseStateLiveData
final LiveData<State> getPurchaseStateLiveData()
-
getPurchaseState
final StateFlow<State> getPurchaseState()
-
purchase
final Unit purchase(Activity activity, PLYPlan plan, PLYProduct product, PLYPromoOffer offer)
-
readyToPurchase
final Unit readyToPurchase()
-
openCancellationPage
final Unit openCancellationPage(Activity activity, PLYPlan plan)
-
updateState
final Unit updateState(State state)
-
isStoreAvailable
final Boolean isStoreAvailable()
-
setContentId
final Unit setContentId(String contentId)
-
getContentId
final String getContentId()
-
getStoreCountry
final String getStoreCountry()
-
getSubscriptionOffer
final PLYSubscriptionOffer getSubscriptionOffer(PLYPlan plan, String storeOfferId)
-
-
-
-