fun init(key: String, context: Context? = null)
fun init(key: String, context: Context? = null)
fun createPaywall(pageType: String = "page", percent: Int? = 80, viewGroup: ViewGroup? = null): Access
fun returnPaywallView(pageType: String = "page", context: Context): View?
fun createBottomSheetPaywall(pageType: String = "page", viewGroup: ViewGroup, onDismissBottomSheet: (() -> Unit)? = null): Access
fun config(key: String, value: Any? = null, readOnly: Boolean? = null): Access
fun config(mapConfig: Map<String, Any>, readOnly: Boolean? = null): Access
fun texts(key: String, value: String, readOnly: Boolean? = null, locale: String? = null): Access
fun texts(mapTexts: Map<String, String>, readOnly: Boolean? = null, locale: String? = null): Access
fun styles(key: String, value: Any? = null, readOnly: Boolean? = null): Access
fun styles(mapStyles: Map<String, Any>, readOnly: Boolean? = null): Access
fun variables(key: String, value: Any? = null): Access
fun variables(mapVariables: Map<String, Any>): Access
fun on*(event: String, callback: (data: Any?) -> Unit): Access
fun off(event: PaywallEvents): Access
on*
.
Accepted values for event
are:PaywallEvents.IDENTITY_AVAILABLE
PaywallEvents.LOCK
PaywallEvents.READY
PaywallEvents.PAYWALL_SEEN
PaywallEvents.RELEASE
PaywallEvents.REGISTER
PaywallEvents.SUBSCRIBE_CLICK
PaywallEvents.LOGIN_CLICK
PaywallEvents.DISCOVERY_LINK_CLICK
PaywallEvents.ALTERNATIVE_CLICK
PaywallEvents.ERROR
PaywallEvents.DATA_POLICY_CLICK
PaywallEvents.FORM_SUBMIT
PaywallEvents.ANSWER
PaywallEvents.CUSTOM_BUTTON_CLICK
PaywallEvents.DESTROY
PaywallEvents.DISMISS_BOTTOM_SHEET
fun destroy(): Unit