validateLink
Check a URL and returns it if valid, otherwise it returns null.
Return
the url if valid, null otherwise
Parameters
url
URL to validate.
Check a Uri and returns it if valid, otherwise it returns null.
Return
the uri if valid, null otherwise
Parameters
uri
Uri to validate.
fun <Error class: unknown class>.validateLink(url: <Error class: unknown class>): <Error class: unknown class>?
Check a NSURL and returns it if valid, otherwise it returns null.
Return
the url if valid, null otherwise
Parameters
url
NSURL to validate.