-
- All Implemented Interfaces:
-
com.android.billingclient.api.PurchasesUpdatedListener,com.badlogic.gdx.pay.InformationFinder,com.badlogic.gdx.pay.PurchaseManager
public class PurchaseManagerGoogleBilling implements PurchaseManager, PurchasesUpdatedListenerThe purchase manager implementation for Google Play (Android) using Google Billing Library
Exponential back-off copied from (a clone of) an Android sample.
Created by Benjamin Schulte on 07.07.2018.
-
-
Constructor Summary
Constructors Constructor Description PurchaseManagerGoogleBilling(Activity activity)
-
Method Summary
Modifier and Type Method Description InformationgetInformation(String identifier)StringstoreName()voidinstall(PurchaseObserver observer, PurchaseManagerConfig config, boolean autoFetchInformation)booleaninstalled()voiddispose()voidpurchase(String identifier)voidpurchaseRestore()voidonPurchasesUpdated(BillingResult result, @Nullable() List<Purchase> purchases)-
Methods inherited from class com.badlogic.gdx.pay.PurchaseManager
dispose, install, installed, purchase, purchaseRestore, storeName -
Methods inherited from class com.badlogic.gdx.pay.InformationFinder
getInformation -
Methods inherited from class com.android.billingclient.api.PurchasesUpdatedListener
onPurchasesUpdated -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PurchaseManagerGoogleBilling
PurchaseManagerGoogleBilling(Activity activity)
-
-
Method Detail
-
getInformation
Information getInformation(String identifier)
-
install
void install(PurchaseObserver observer, PurchaseManagerConfig config, boolean autoFetchInformation)
-
installed
boolean installed()
-
dispose
void dispose()
-
purchaseRestore
void purchaseRestore()
-
onPurchasesUpdated
void onPurchasesUpdated(BillingResult result, @Nullable() List<Purchase> purchases)
-
-
-
-