Companion
Functions
Link copied to clipboard
fun canMakePayments(context: Context, features: List<BillingFeature> = listOf(), callback: Callback<Boolean>)
Content copied to clipboard
Check if billing is supported for the current Play user (meaning IN-APP purchases are supported) and optionally, whether a list of specified feature types are supported. This method is asynchronous since it requires a connected BillingClient.
Link copied to clipboard
fun configure(context: Context, apiKey: String, appUserID: String? = null, observerMode: Boolean = false, service: ExecutorService = createDefaultExecutor()): Purchases
Content copied to clipboard
Configures an instance of the Purchases SDK with a specified API key. The instance will be set as a singleton. You should access the singleton instance using Purchases.sharedInstance
Properties
Link copied to clipboard
True if configure has been called and Purchases.sharedInstance is set
Link copied to clipboard
Singleton instance of Purchases. configure will set this