Setup a linked paywall in Nami to use the paywall already in your app.
Sets up code that can build and present a paywall, that Nami will invoke when a campaign is launched which points to a paywall that was created using the code your own paywall flow (also referred to as a linked paywall).
NamiPaywallManager.renderCustomUiHandler( { ( fromVC: UIViewController?, products : [NamiSKU]?, paywallMetadata : NamiPaywall ) in
// Provide your custom paywall UI here
}
NamiPaywallManager.renderCustomUiHandler { _, namiPaywall, skus ->
// Provide your custom paywall UI here
}
Arguments
- (required)
applicationPaywallDataProvider
: Callback of type NamiPaywallDataProvider.