Last active
November 22, 2021 21:04
-
-
Save TorkelV/eb7bc01763425fba185bf5126cde3995 to your computer and use it in GitHub Desktop.
Check if WebView is available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun hasWebView(): Boolean { | |
return kotlin.runCatching { CookieManager.getInstance() }.isSuccess | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment