MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / isMailTo

Method isMailTo

core/src/main/java/androidx/core/net/MailTo.java:73–75  ·  view source on GitHub ↗

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 en

(@Nullable String uri)

Source from the content-addressed store, hash-verified

71 * @return true if the string is a mailto URI
72 */
73 public static boolean isMailTo(@Nullable String uri) {
74 return uri != null && uri.startsWith(MAILTO_SCHEME);
75 }
76
77 /**
78 * Test to see if the given Uri is a mailto URI

Callers 1

parseMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected