BillingClientFactory typedef

  1. @visibleForTesting
BillingClientFactory = BillingClient Function(PurchasesUpdatedListener onPurchasesUpdated, UserSelectedAlternativeBillingListener? alternativeBillingListener)

Factory for creating BillingClient instances, to allow injection of custom billing clients in tests.

Implementation

@visibleForTesting
typedef BillingClientFactory = BillingClient Function(
    PurchasesUpdatedListener onPurchasesUpdated,
    UserSelectedAlternativeBillingListener? alternativeBillingListener);