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

Method getUriForPath

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

获取 FileProvider File Path Uri @param filePath 文件路径 @return 指定文件 Uri

(final String filePath)

Source from the content-addressed store, hash-verified

65 * @return 指定文件 {@link Uri}
66 */
67 public static Uri getUriForPath(final String filePath) {
68 return getUriForFile(FileUtils.getFileByPath(filePath), DevUtils.getAuthority());
69 }
70
71 /**
72 * 获取 FileProvider File Path Uri ( 自动添加包名 ${applicationId} )

Callers 2

ofUriMethod · 0.95
getUriForPathMethod · 0.95

Calls 3

getUriForFileMethod · 0.95
getFileByPathMethod · 0.95
getAuthorityMethod · 0.95

Tested by

no test coverage detected