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
fun configure(configuration: PurchasesConfiguration): 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 logHandler: LogHandler

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

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
val sharedInstance: Purchases

Singleton instance of Purchases. configure will set this

Sources

Link copied to clipboard