func init(key: String)
func init(key: String)
func createPaywall(pageType: String? = "page", view: UIView? = nil, percent: Int? = nil, complete: (() -> Void)? = nil) -> Void
func createPaywall(pageType: String, onFlowComplete: (() -> Void)?) -> UIView?
func config(_ config: [String: Any], _ readOnly: Bool = false) -> Void
func texts(_ texts: [String: String], _ readOnly: Bool = false) -> Void
Localizable.strings
file to your project for all the languages you want to support.func styles(_ styles: [String: Any], _ readOnly: Bool = false) -> Void
func variables(_ variables: [String: Any]) -> Void
func on*(event: String, callback: @escaping (Event?) -> Void) -> Void
func off(_ event: String) -> Void
on*
.
Accepted values for event
are:"identityAvailable"
"lock"
"ready"
"paywallSeen"
"release"
"register"
"subscribeClick"
"loginClick"
"discoveryLinkClick"
"alternativeClick"
"error"
"dataPolicyClick"
"formSubmit"
"answer"
"customButtonClick"
static func setDebug(_ enabled: Bool)