Skip to content

custom web view

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.webscrapper.base/CustomWebView/CustomWebView

CustomWebView

[androidJvm]
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, userAgent: String = "Mozilla/5.0 (X11; Linux x86_64) " + "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36", adBlocker: IAdBlocker = NoAdBlock(), onError: CustomWebView.(Throwable) -> Unit = { e -> Timber.e(e) }, onIconReceived: CustomWebView.(Bitmap?) -> Unit? = null, onTitleReceived: CustomWebView.(String?) -> Unit? = null, onProgress: CustomWebView.(Int) -> Unit? = null, onPageLoadStart: CustomWebView.() -> Unit? = null, onPageLoadFinish: CustomWebView.() -> Unit? = null, onUnhandledKey: CustomWebView.(event: KeyEvent?) -> Boolean? = null, maxScriptDelay: Long = 5 * 60 * 1000, loadImages: Boolean = true, loadScripts: Boolean = true, loadMedia: Boolean = true, loadCssStyles: Boolean = true, loadFonts: Boolean = true)

Clone this wiki locally