TheFinestArtist/FinestWebView-Android

Programmatically close

Opened this issue · 2 comments

How can I programmatically close the modal? Specifically from inside a WebListener.

Yeah i am also looking for this @TheFinestArtist

I implemented some code to allow us to programmatically close the activity. You can do Builder.close()

Kotlin Example:

val webviewBuilder = FinestWebView.Builder(this)
webviewBuilder.setWebViewListener(object : WebViewListener() {
            override fun onPageFinished(url: String?) {
                Handler().postDelayed({
                    webviewBuilder.close()
                }, 5000)
            }
})

implementation 'com.github.gintechsystems:FinestWebView-Android:1.2.7'