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

Method getUriForFile

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

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

(final File file)

Source from the content-addressed store, hash-verified

56 * @return 指定文件 {@link Uri}
57 */
58 public static Uri getUriForFile(final File file) {
59 return getUriForFile(file, DevUtils.getAuthority());
60 }
61
62 /**
63 * 获取 FileProvider File Path Uri

Callers 8

getUriForFileMethod · 0.95
getUriForPathMethod · 0.95
insertMediaMethod · 0.95
getInstallAppIntentMethod · 0.95
openFileMethod · 0.95
getUriForPathMethod · 0.95
getUriForFileToNameMethod · 0.95
getUriForFileMethod · 0.95

Calls 5

getAuthorityMethod · 0.95
getContextMethod · 0.95
eTagMethod · 0.95
getUriForFileMethod · 0.65
fromFileMethod · 0.65

Tested by

no test coverage detected