-
public final class PurchaseClient.BuilderBuilder for PurchaseClient
-
-
Constructor Summary
Constructors Constructor Description PurchaseClient.Builder(Context context, Store store)
-
Method Summary
-
-
Method Detail
-
logSubscriptions
final <ERROR CLASS> logSubscriptions(Boolean enabled)
Enables automatic logging of subscription events
- Parameters:
enabled- pass true to enable, false to disable.
-
autoLogInApps
final <ERROR CLASS> autoLogInApps(Boolean enabled)
Enables automatic logging of In-App purchase events
- Parameters:
enabled- pass true to enable, false to disable.
-
setSandbox
final <ERROR CLASS> setSandbox(Boolean isSandbox)
Set sandbox flag
- Parameters:
isSandbox- affects which environment will be used for validation, production (false) by default
-
setSubscriptionValidationResultListener
final <ERROR CLASS> setSubscriptionValidationResultListener(PurchaseClient.SubscriptionPurchaseValidationResultListener listener)
- Parameters:
listener- will be called after data upload with the server response
-
setInAppValidationResultListener
final <ERROR CLASS> setInAppValidationResultListener(PurchaseClient.InAppPurchaseValidationResultListener listener)
- Parameters:
listener- will be called after data upload with the server response
-
setSubscriptionPurchaseEventDataSource
final <ERROR CLASS> setSubscriptionPurchaseEventDataSource(PurchaseClient.SubscriptionPurchaseEventDataSource dataSource)
- Parameters:
dataSource- will be called just before send data to backend, you can add your custom params to the purchase payload based on purchased items
-
setInAppPurchaseEventDataSource
final <ERROR CLASS> setInAppPurchaseEventDataSource(PurchaseClient.InAppPurchaseEventDataSource dataSource)
- Parameters:
dataSource- will be called just before send data to backend, you can add your custom params to the purchase payload based on purchased items
-
setBillingClientFactory
final <ERROR CLASS> setBillingClientFactory(BillingClientConnector.BillingClientFactory<?> factory)
-
setAfClient
final <ERROR CLASS> setAfClient(AppsFlyerLib afClient)
-
setConnector
final <ERROR CLASS> setConnector(BillingClientConnector connector)
-
build
final PurchaseClient build()
Enables automatic logging of revenue from Subscriptions purchased on Google Play Store. Purchases data collection will occur on app launch and on every new purchase
-
-
-
-