isValidURL

open fun isValidURL(url: Uri): Boolean

A method to validate an URL before opening in browser. This method is optional and always returns true by default.