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 LinksManager.validateLink(url: NSURL): NSURL?

Check a NSURL and returns it if valid, otherwise it returns null.

Return

the url if valid, null otherwise

Parameters

url

NSURL to validate.