A callback the application provides to Nami that is invoked when Nami asks the application to present a linked paywall.
/**
A handler that is given all of the metadata needed to raise a paywall UI, including realized products (loaded from StoreKit) and already fetched background images, This handler is for requesting paywall metadata that may be used for presenting a paywall using custom UI and display logic
- parameters:
- products: A set of products that have the native SKProduct data loaded. May be empty if the paywall has no products, or they could not be loaded.
- paywallMetadata: The paywall metadata passed down from the Nami server. See NamiPaywallKeys for possible keys to access values.
*/
public typealias NamiPaywallDataProvider = ( _ products: [NamiSKU]?, _ paywallMetadata: NamiPaywall? ) -> Void
/**
* A type alias for Lambda callback used in NamiPaywallManager.renderCustomUiHandler.
* It returns,
* context: An application Context
* products: List of SKUs available to user to subscribe to
* paywallMetadata: NamiPaywall object which contains metadata of the paywall which can be used to render the paywall UI
*/
public typealias NamiPaywallDataProvider = ( _ products: [NamiSKU]?, _ paywallMetadata: NamiPaywall? ) -> Void