-
Notifications
You must be signed in to change notification settings - Fork 0
custom web view
//tvlib/org.mjdev.tvlib.webscrapper.base/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)