public interface ConfigService extends AppService
defaultServiceProperty
限定符和类型 | 字段和说明 |
---|---|
static String |
APP_DIR |
static String |
DATABASE_NAME |
static String |
DOWNLOAD_DIR |
static String |
IMAGE_DIR |
static String |
SHARED_NAME |
static String |
TEMP_DIR |
static String |
UPGRADE_DIR |
ANALYTICS_SERVICE, CACHE_MANAGER, CONFIG_SERVICE, CRASH_SERVICE, DOWNLOAD_MANAGER, LOCATION_SERVICE, OBSERVER_MANAGER, ROUTE_SERVICE, SESSION_SERVICE, STATUS_SERVICE, UPGRADE_SERVICE
限定符和类型 | 方法和说明 |
---|---|
File |
getAppDir()
获取app目录
|
File |
getCacheDir()
获取缓存目录
|
String |
getDatabaseName()
获取数据库名称
|
File |
getDownloadDir()
获取下载目录
|
File |
getImageDir()
获取图片目录
|
String |
getSharedName()
获取共享文件名称
|
File |
getTempDir()
获取临时目录
|
File |
getUpgradeDir()
获取更新目录
|
boolean |
isCustomAppDir()
返回是否使用自定义AppDir
|
boolean |
isUseInternalStorage()
返回是否使用内置存储(只对非自定义AppDir有效)
|
void |
resetAppDir()
恢复AppDir为默认
|
void |
setCustomAppDir(String path)
自定义设置AppDir
|
void |
setUseInternalStorage(boolean useInternalStorage)
使用内部存储(只对非自定义AppDir有效) 默认为false
|
defaultServiceProperty, getName, getServiceProperty, init, onCreate, onDestroy, setDebug
File getCacheDir()
File getImageDir()
File getTempDir()
File getDownloadDir()
File getUpgradeDir()
String getDatabaseName()
String getSharedName()
boolean isUseInternalStorage()
void setUseInternalStorage(boolean useInternalStorage)
useInternalStorage
- File getAppDir()
void setCustomAppDir(String path)
boolean isCustomAppDir()
void resetAppDir()