Type Method

configure(withAPIKey:)

Configures an instance of the Purchases SDK with a specified API key.

Declaration

@discardableResult @objc(configureWithAPIKey:) static func configure(withAPIKey apiKey: String) -> Purchases

Return Value

An instantiated Purchases object that has been set as a singleton.

Parameters

apiKey

The API Key generated for your app from https://app.revenuecat.com/

Discussion

The instance will be set as a singleton. You should access the singleton instance using shared

See Also

Configuring the SDK