Companion

object Companion

Functions

Link copied to clipboard
fun canMakePayments(context: Context, features: List<BillingFeature> = listOf(), callback: Callback<Boolean>)

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

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
var debugLogsEnabled: Boolean

Enable debug logging. Useful for debugging issues with the lovely team @RevenueCat

Link copied to clipboard
val frameworkVersion: String

Current version of the Purchases SDK

Link copied to clipboard
val isConfigured: Boolean

True if configure has been called and Purchases.sharedInstance is set

Link copied to clipboard
var platformInfo: PlatformInfo

DO NOT MODIFY. This is used internally by the Hybrid SDKs to indicate which platform is being used

Link copied to clipboard
var proxyURL: URL? = null

Set this property to your proxy URL before configuring Purchases only if you've received a proxy key value from your RevenueCat contact.

Link copied to clipboard
var sharedInstance: Purchases

Singleton instance of Purchases. configure will set this

Sources

Link copied to clipboard