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

Method getUriForFile

lib/DevApp/src/main/java/dev/DevUtils.java:493–495  ·  view source on GitHub ↗

获取 FileProvider File Uri @param file 文件 @return 指定文件 Uri

(final File file)

Source from the content-addressed store, hash-verified

491 * @return 指定文件 {@link Uri}
492 */
493 public static Uri getUriForFile(final File file) {
494 return UriUtils.getUriForFile(file, getAuthority());
495 }
496
497 /**
498 * 获取 FileProvider File Path Uri

Callers 2

getShareImageIntentMethod · 0.95
openFileByAppMethod · 0.95

Calls 2

getUriForFileMethod · 0.95
getAuthorityMethod · 0.95

Tested by

no test coverage detected