Package arc.backend.android
Class AndroidFiles
java.lang.Object
arc.backend.android.AndroidFiles
- All Implemented Interfaces:
Files
-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.Files
Files.FileType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(String path, Files.FileType type) Returns a handle representing a file or directory.boolean
boolean
-
Field Details
-
sdcard
-
localpath
-
assets
protected final android.content.res.AssetManager assets
-
-
Constructor Details
-
AndroidFiles
-
-
Method Details
-
get
Description copied from interface:Files
Returns a handle representing a file or directory. -
getCachePath
- Specified by:
getCachePath
in interfaceFiles
- Returns:
- absolute path to cache directory.
-
getExternalStoragePath
- Specified by:
getExternalStoragePath
in interfaceFiles
- Returns:
- the external storage path directory. This is the SD card on Android and the home directory of the current user on the desktop.
-
isExternalStorageAvailable
public boolean isExternalStorageAvailable()- Specified by:
isExternalStorageAvailable
in interfaceFiles
- Returns:
- true if the external storage is ready for file IO. Eg, on Android, the SD card is not available when mounted for use with a PC.
-
getLocalStoragePath
- Specified by:
getLocalStoragePath
in interfaceFiles
- Returns:
- the local storage path directory. This is the private files directory on Android and the directory of the jar on the desktop.
-
isLocalStorageAvailable
public boolean isLocalStorageAvailable()- Specified by:
isLocalStorageAvailable
in interfaceFiles
- Returns:
- true if the local storage is ready for file IO.
-