PurchasesApplicationProvider

This class is only used to capture the Application instance and keep a reference to it. The Application instance is used for 2 things:

  1. To call static Purchases methods that need a Context, such as canMakePayments.

  2. To keep track of the current Activity, which is needed to make purchases.

If you need to use RevenueCat in your own Initializer, make sure to add PurchasesApplicationProvider to its dependencies like so:

override fun dependencies(): List<Class<out Initializer<*>>> = listOf(
PurchasesApplicationProvider::class.java
)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun create(context: Context)
Link copied to clipboard
open override fun dependencies(): List<Class<out Initializer<*>>>