-
- All Implemented Interfaces:
-
com.badlogic.gdx.Files,com.badlogic.gdx.backends.android.AndroidFiles
public class DefaultAndroidFiles implements AndroidFiles
-
-
Field Summary
Fields Modifier and Type Field Description private ZipResourceFileexpansionFile
-
Constructor Summary
Constructors Constructor Description DefaultAndroidFiles(AssetManager assets, ContextWrapper contextWrapper, boolean useExternalFiles)
-
Method Summary
Modifier and Type Method Description ZipResourceFilegetExpansionFile()FileHandlegetFileHandle(String path, Files.FileType type)FileHandleclasspath(String path)FileHandleinternal(String path)FileHandleexternal(String path)FileHandleabsolute(String path)FileHandlelocal(String path)StringgetExternalStoragePath()booleanisExternalStorageAvailable()StringgetLocalStoragePath()booleanisLocalStorageAvailable()booleansetAPKExpansion(int mainVersion, int patchVersion)This method can be called to set the version code of the APK expansion file(s) used by the application -
Methods inherited from class com.badlogic.gdx.Files
absolute, classpath, external, getExternalStoragePath, getFileHandle, getLocalStoragePath, internal, isExternalStorageAvailable, isLocalStorageAvailable, local -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DefaultAndroidFiles
DefaultAndroidFiles(AssetManager assets, ContextWrapper contextWrapper, boolean useExternalFiles)
-
-
Method Detail
-
getExpansionFile
ZipResourceFile getExpansionFile()
-
getFileHandle
FileHandle getFileHandle(String path, Files.FileType type)
-
getExternalStoragePath
String getExternalStoragePath()
-
isExternalStorageAvailable
boolean isExternalStorageAvailable()
-
getLocalStoragePath
String getLocalStoragePath()
-
isLocalStorageAvailable
boolean isLocalStorageAvailable()
-
setAPKExpansion
boolean setAPKExpansion(int mainVersion, int patchVersion)
This method can be called to set the version code of the APK expansion file(s) used by the application
- Parameters:
mainVersion- - version code of the main expansion filepatchVersion- - version code of the patch expansion file
-
-
-
-