Companion

object Companion

Functions

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

Note: This method only works for the Google Play Store. There is no Amazon equivalent at this time. Calling from an Amazon-configured app will return true.

Link 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

Current version of the Purchases SDK

Link copied to clipboard

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

Link copied to clipboard

Set a custom log handler for redirecting logs to your own logging system. Defaults to android.util.Log.

Link copied to clipboard

Configure log level. Useful for debugging issues with the lovely team @RevenueCat By default, LogLevel.DEBUG in debug builds, and LogLevel.INFO in release builds.

Link copied to clipboard

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

Link copied to clipboard

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

Singleton instance of Purchases. configure will set this