MCPcopy Create free account
hub / github.com/afkT/DevUtils / isUriScheme

Method isUriScheme

lib/DevApp/src/main/java/dev/utils/app/UriUtils.java:585–590  ·  view source on GitHub ↗

判断是否指定的 Uri Scheme @param uriScheme 如 ContentResolver.SCHEME_CONTENT @param uri Uri @return true yes, false no

(
            final String uriScheme,
            final Uri uri
    )

Source from the content-addressed store, hash-verified

583 * @return {@code true} yes, {@code false} no
584 */
585 public static boolean isUriScheme(
586 final String uriScheme,
587 final Uri uri
588 ) {
589 return isUriScheme(uriScheme, getUriScheme(uri));
590 }
591
592 /**
593 * 判断是否指定的 Uri Scheme ( 忽略大小写 )

Callers 3

isFileSchemeMethod · 0.95
isContentSchemeMethod · 0.95

Calls 2

getUriSchemeMethod · 0.95

Tested by

no test coverage detected