FinestWebView-Android icon indicating copy to clipboard operation
FinestWebView-Android copied to clipboard

Programmatically close

Open shanecontinued opened this issue 5 years ago • 2 comments

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

shanecontinued avatar Aug 28 '18 21:08 shanecontinued

Yeah i am also looking for this @TheFinestArtist

sukhcha-in avatar Feb 11 '19 09:02 sukhcha-in

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'

gintechsystems avatar Sep 21 '20 03:09 gintechsystems