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

Method getUriForPath

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

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

(final String filePath)

Source from the content-addressed store, hash-verified

500 * @return 指定文件 {@link Uri}
501 */
502 public static Uri getUriForPath(final String filePath) {
503 return UriUtils.getUriForFile(FileUtils.getFileByPath(filePath), getAuthority());
504 }
505
506 /**
507 * detail: FileProvider

Callers

nothing calls this directly

Calls 3

getUriForFileMethod · 0.95
getFileByPathMethod · 0.95
getAuthorityMethod · 0.95

Tested by

no test coverage detected