isMailTo

Test to see if the given string is a mailto URI

Note: scheme name matching is case-sensitive, unlike the formal RFC. As a result, you should always ensure that you write your URI string with the scheme using lower case letters, and normalize any URIs you receive from outside of Android to ensure the scheme is lower case.

Return

true if the string is a mailto URI

Parameters

uri

string to be tested


open fun isMailTo(@Nullable uri: Uri): Boolean(source)

Test to see if the given Uri is a mailto URI

Note: scheme name matching is case-sensitive, unlike the formal RFC. As a result, you should always ensure that you write your Uri with the scheme using lower case letters, and normalize any Uris you receive from outside of Android to ensure the scheme is lower case.

Return

true if the Uri is a mailto URI

Parameters

uri

Uri to be tested