Definition at line 14 of file PathUtils.java.
◆ getCacheDirectory()
static String io.flutter.util.PathUtils.getCacheDirectory |
( |
@NonNull Context |
applicationContext | ) |
|
|
inlinestatic |
Definition at line 35 of file PathUtils.java.
35 {
37 cacheDir = applicationContext.getCodeCacheDir();
39 cacheDir = applicationContext.getCacheDir();
40 }
42
43
44
45
46
47 cacheDir =
new File(getDataDirPath(applicationContext),
"cache");
48 }
50 }
◆ getDataDirectory()
static String io.flutter.util.PathUtils.getDataDirectory |
( |
@NonNull Context |
applicationContext | ) |
|
|
inlinestatic |
Definition at line 25 of file PathUtils.java.
25 {
26 final String
name =
"flutter";
27 File flutterDir = applicationContext.getDir(
name, Context.MODE_PRIVATE);
28 if (flutterDir == null) {
29 flutterDir =
new File(getDataDirPath(applicationContext),
"app_" +
name);
30 }
31 return flutterDir.getPath();
32 }
DEF_SWITCHES_START aot vmservice shared library name
◆ getFilesDir()
static String io.flutter.util.PathUtils.getFilesDir |
( |
@NonNull Context |
applicationContext | ) |
|
|
inlinestatic |
Definition at line 16 of file PathUtils.java.
16 {
17 File filesDir = applicationContext.getFilesDir();
18 if (filesDir == null) {
19 filesDir = new File(getDataDirPath(applicationContext), "files");
20 }
21 return filesDir.getPath();
22 }
The documentation for this class was generated from the following file: