PaywallWebUI

interface PaywallWebUI(source)

Inheritors

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun attach(toView: ViewGroup)
Link copied to clipboard
abstract fun destroyView()
Link copied to clipboard
abstract fun detach(fromView: ViewGroup)
Link copied to clipboard
Link copied to clipboard
abstract fun evaluate(code: String, resultCallback: (String?) -> Unit?)
Link copied to clipboard
open fun onPause()
Link copied to clipboard
open fun onPaywallReady()

The paywall finished loading: the page is ready and has its templates. A WebView that is off screen (a preload waiting in the cache) can stop rendering from here on.

Link copied to clipboard
open fun onResume()
Link copied to clipboard
abstract fun onView(perform: View.() -> Unit)
Link copied to clipboard
abstract fun scrollBy(x: Int, y: Int)
Link copied to clipboard
abstract fun scrollTo(x: Int, y: Int)
Link copied to clipboard
abstract fun setup(url: PaywallURL, onRenderCrashed: (didCrash: Boolean, priority: Int) -> Unit, onLoadFailed: (WebviewError) -> Unit = {})

Loads the paywall. onLoadFailed fires once the page can't be loaded at all: every URL and retry has been used up. Failures that are still being retried don't report.