-
- All Implemented Interfaces:
-
com.android.billingclient.api.BillingClientStateListener,com.android.billingclient.api.PurchasesUpdatedListener,com.appsflyer.api.OnAppResumeListener,com.appsflyer.internal.connectors.BillingClientConnector
public class GoogleConnector implements BillingClientConnector, BillingClientStateListener, PurchasesUpdatedListener, OnAppResumeListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGoogleConnector.GoogleClientFactory
-
Field Summary
Fields Modifier and Type Field Description private BillingClientConnector.BillingUpdatesListenerlistener
-
Constructor Summary
Constructors Constructor Description GoogleConnector(Context context, GoogleConnector.GoogleClientFactory googleClientFactory, SharedPreferences sharedPreferences, PurchaseDatabaseHelper db)
-
Method Summary
Modifier and Type Method Description voidsetListener(BillingClientConnector.BillingUpdatesListener listener)voidstart()voidstop()booleangetStopped()synchronized ScheduledExecutorServicegetScheduledBackgroundExecutor()voidonBillingSetupFinished(@NonNull() BillingResult billingResult)voidonBillingServiceDisconnected()voidonPurchasesUpdated(@NonNull() BillingResult billingResult, @Nullable() List<Purchase> newPurchases)voidonAppOnResume()-
Methods inherited from class com.android.billingclient.api.BillingClientStateListener
onBillingServiceDisconnected, onBillingSetupFinished -
Methods inherited from class com.android.billingclient.api.PurchasesUpdatedListener
onPurchasesUpdated -
Methods inherited from class com.appsflyer.api.OnAppResumeListener
onAppOnResume -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GoogleConnector
GoogleConnector(Context context, GoogleConnector.GoogleClientFactory googleClientFactory, SharedPreferences sharedPreferences, PurchaseDatabaseHelper db)
-
-
Method Detail
-
setListener
void setListener(BillingClientConnector.BillingUpdatesListener listener)
-
start
void start()
-
stop
void stop()
-
getStopped
boolean getStopped()
-
getScheduledBackgroundExecutor
synchronized ScheduledExecutorService getScheduledBackgroundExecutor()
-
onBillingSetupFinished
void onBillingSetupFinished(@NonNull() BillingResult billingResult)
-
onBillingServiceDisconnected
void onBillingServiceDisconnected()
-
onPurchasesUpdated
void onPurchasesUpdated(@NonNull() BillingResult billingResult, @Nullable() List<Purchase> newPurchases)
-
onAppOnResume
void onAppOnResume()
-
-
-
-