Programmatically close
Opened this issue · 2 comments
shanecontinued commented
How can I programmatically close the modal? Specifically from inside a WebListener.
sukhcha-in commented
Yeah i am also looking for this @TheFinestArtist
gintechsystems commented
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'