Builder

class Builder(var apiKey: String)

Use this builder to create an instance of PurchasesConfiguration.

Constructors

Link copied to clipboard
constructor(apiKey: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var dangerousSettings: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
var purchasesAreCompletedBy: <Error class: unknown class>
Link copied to clipboard
var store: <Error class: unknown class>?
Link copied to clipboard
var storeKitVersion: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
var verificationMode: <Error class: unknown class>

Functions

Link copied to clipboard

Your RevenueCat API Key.

Link copied to clipboard

A unique id for identifying the user

Link copied to clipboard

Creates a PurchasesConfiguration instance with the specified properties.

Link copied to clipboard
fun dangerousSettings(dangerousSettings: <Error class: unknown class>): PurchasesConfiguration.Builder

Only use a Dangerous Setting if suggested by RevenueCat support team.

Link copied to clipboard

Enabling diagnostics will send some performance and debugging information from the SDK to our servers. Examples of this information include response times, cache hits or error codes. This information will be anonymized so it can't be traced back to the end-user. The default value is false.

Enable this setting if you want to allow pending purchases for prepaid subscriptions (only supported in Google Play). Note that entitlements are not granted until payment is done. Default is disabled.

Link copied to clipboard
fun purchasesAreCompletedBy(purchasesAreCompletedBy: <Error class: unknown class>): PurchasesConfiguration.Builder

An optional setting. Set this to PurchasesAreCompletedBy.MyApp if you have your own IAP implementation and want to use only RevenueCat's backend. Default is PurchasesAreCompletedBy.RevenueCat. If you are on Android and setting this to PurchasesAreCompletedBy.MyApp, you will have to acknowledge the purchases yourself.

Link copied to clipboard

Enable this setting to show in-app messages from Google Play automatically. Default is enabled. For more info: rev.cat

Link copied to clipboard
fun store(store: <Error class: unknown class>?): PurchasesConfiguration.Builder

The store in which to make purchases. See Store for supported stores.

Link copied to clipboard
fun storeKitVersion(storeKitVersion: <Error class: unknown class>): PurchasesConfiguration.Builder

iOS-only, will be ignored for Android. By providing StoreKitVersion.DEFAULT, RevenueCat will automatically select the most appropriate StoreKit version for the app's runtime environment.

Link copied to clipboard

iOS-only, will be ignored for Android. Set this if you would like the RevenueCat SDK to store its preferences in a different NSUserDefaults suite, otherwise it will use standardUserDefaults. Default is null, which will make the SDK use standardUserDefaults.

Link copied to clipboard
fun verificationMode(verificationMode: <Error class: unknown class>): PurchasesConfiguration.Builder

Sets the EntitlementVerificationMode to perform signature verification of requests to the RevenueCat backend.